Computer Science, asked by VinayaBR, 1 month ago


algorithm and flowchart Find the sum
of first 100 natural
numbers​

Answers

Answered by bondigavijayalakshmi
0

Explanation:

Without Using Loop – Using Formula:

main()

int num, sum;

printf("\n Enter the number: ");

scanf("%d",&num);

sum = num*(num+1)/2;

printf("\n\n The sum of natural number is: %d\n ", sum);

07-Oct-2014

Similar questions