Write Even or odd calculation till n

January 15, 2010

Dim num,n
n=Inputbox ("Enter a Vaule")
For num= 1 to n step 2
msgbox num
Next
ofcourse there are methods...like mod 2 test..
but this is shortest.

ofcourse there are methods...like mod 2 test..
but this is shortest.

You Might Also Like

0 comments