Dim a As Double
Dim s As Double
Dim e As Single
Dim t As Single
a = 1
s = 1
e = 1
Do While 1 / s >= 10 ^ (-0.4)
s = s * a
t = 1 / s
e = e + t
a = a + 1
Loop
Print "e="; e
Dim a As Double
Dim s As Double
Dim e As Single
Dim t As Single
a = 1
s = 1
e = 1
Do While 1 / s >= 10 ^ (-0.4)
s = s * a
t = 1 / s
e = e + t
a = a + 1
Loop
Print "e="; e