Computer Science, asked by anchalsahare2018, 5 hours ago

Write a algorithm, Draw a flowchart and develop a  Program to Compute the Sum of Digits in a given Integer​

Answers

Answered by clairarmy
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