Task

Calculate the value of   e.



(e   is also known as   Euler's number   and   Napier's constant.)



See details: Calculating the value of e

100 PROGRAM "e.bas"
110 LET E1=0:LET E,N,N1=1
120 DO WHILE E<>E1
130   LET E1=E:LET E=E+1/N
140   LET N1=N1+1:LET N=N*N1
150 LOOP 
160 PRINT "The value of e =";E