Visualize the approximation of the Euler's number e

Exercise Type: Implementation

Instructions

Use a while() loop to calculate and plot 10 values during the approach of Euler’s number, based on the material here! Use this line of code to draft an empty plot:

plot(NULL, type="n", xlim=c(0, 10), ylim=c(0, 3))