Write a Function for Natural Numbers sum up to n

Function NNumCou (n)
Dim num, sum
sum=0
For num= 1 to n step 1
sum= sum+num
Next
msgbox sum
End Function
Write a Function for Natural Numbers sum up to n Write a Function for Natural Numbers sum up to n Reviewed by Animesh Chatterjee on January 23, 2010 Rating: 5

No comments:

Powered by Blogger.