Header Ads

Write Even or odd calculation till n

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.
Powered by Blogger.