Computer Science, asked by ramjankischool1986, 11 months ago

write a For loop program to add first ten natural number​

Answers

Answered by yyamini426
0

Answer:

the condition reuired is:for(i=1;i<=10;i++)

Explanation:

#include<stdio.h>

int main()

{

int sum=0,i;

for(i=1;i<=10;i++)

{

sum=sum+i;

}

printf("%d",sum);

return 0;

}

Similar questions