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.
Write Even or odd calculation till n Write Even or odd calculation till n Reviewed by Animesh Chatterjee on January 15, 2010 Rating: 5

No comments:

Powered by Blogger.