0
int sum=0; //it's a sum of natural numbers so it will at least be 0, even if n=0.
for (int i=n;i>0;i--)
{
sum=sum+i;
}
25th Jul 2016, 3:19 PM
Valentino Picone

Often have questions like this?
Learn more efficiently, for free:
Hot today
Python
0 Votes
Can CSS Work Without HTML?
1 Votes
Can anyone fix my website
0 Votes
Img
0 Votes