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
English,
3 hours ago
English,
3 hours ago
Hindi,
5 hours ago
Environmental Sciences,
5 hours ago
Social Sciences,
7 months ago
Hindi,
7 months ago
Economy,
7 months ago