Computer Science, asked by dillipkumar1973, 8 months ago

write a program to display and find the sum of any ten natural number.​

Answers

Answered by geniuskhushi32
0

Answer:

Write a C program to find the sum of first 10 natural numbers.

Pictorial Presentation:

Sample Solution:

C Code: #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); } ...

Answered by pantanjulavi
1

Answer:

Write a C program to find the sum of first 10 natural numbers.

Pictorial Presentation:

Sample Solution:

C Code: #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); } ...

Flowchart:

Mark as brainliest answer

Similar questions