devise an algorithm that finds the sum of all the integers in the list driefly explain
Answers
Answered by
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