Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

2/10/2021 C exercises: Display the sum of first 10 natural numbers - w3resource

 w3resource (https://www.w3resource.com/index.php)
11 printf("%d ",j);
12 }
13 printf("\nThe Sum is : %d\n", sum);
14 }

Sample Output:

The first 10 natural number is :


1 2 3 4 5 6 7 8 9 10
The Sum is : 55

Flowchart:


https://www.w3resource.com/c-programming-exercises/for-loop/c-for-loop-exercises-2.php 1/1

You might also like