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

n = 1  : n1 = 1
e1 = 0 : e = 1 / 1
 
while e <> e1
	e1 = e
	e += 1 / n
	n1 += 1
	n *= n1
end while
 
print "The value of e = "; e
end