I have this code that is trying to show the summation of;
- All the even numbers from 0-100 or whatever number the user inputs
and then;
- Show the summation of all the odd numbers from 0-100 or whatever number the user inputs.
Here is what I have so far:
Evennumber=InputBox("Please enter a even number!")
print "total + e"
For e= 2 to Evennumber step 2
total= total+e
print total&" + "&e
Next
print total
Oddnumber=InputBox("Please enter a odd number!")
print "total + o"
For o= 1 to Oddnumber step 2
total = total + o
print total&" + "&o
Next
print total
Is this correct?