Math, asked by touseefurrehman01, 2 months ago

devise an algorithm that finds the sum of all the integers in the list driefly explain

Answers

Answered by itzbhavesh282
1

Answer:

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);

Similar questions