write a For loop program to add first ten natural number
Answers
Answered by
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