Write a algorithm, Draw a flowchart and develop a Program to Compute the Sum of Digits in a given Integer
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);
not so sure
Similar questions
Math,
1 month ago
Social Sciences,
1 month ago
Physics,
1 month ago
Hindi,
2 months ago
Environmental Sciences,
2 months ago
Social Sciences,
10 months ago
Hindi,
10 months ago
Economy,
10 months ago