By using for loop write a C language program to calculate the sum of numbers 1 to 100
Answers
Answered by
0
Answer:
#include <stdio.h>
int main()
{
int sum = 0;
for(int i = 0; i < 100; i++){
sum = sum + i;
}
printf("%d" , sum);
}
Explanation:
Similar questions