Write a program to calculate the sum of 10 numbers.
Answers
Answered by
0
Answer:
10x10 is answers for this question
Answered by
0
Answer:
#include <stdio.h>
void main()
{
int j, sum = 0;
printf("The first 10 natural number is :\n");
for (j = 1; j <= 10; j++)
{
sum = sum + j;
printf("%d ",j);
}
printf("\nThe Sum is : %d\n", sum);
}
Step-by-step explanation:
Similar questions