Option Explicit
Dim sum,n
sum=0
n=Inputbox("Please enter a number: ")
For num=1 to n
sum=sum+num
Next
Msgbox sum
The code above can now calculate the sum!!!!, haha!!
[ Last edited by stornager on 2007-5-24 at 11:51 PM ]
Dim sum,n
sum=0
n=Inputbox("Please enter a number: ")
For num=1 to n
sum=sum+num
Next
Msgbox sum
The code above can now calculate the sum!!!!, haha!!
[ Last edited by stornager on 2007-5-24 at 11:51 PM ]

