Algorithm and flowchart of sum of digit of integer number c++ algorithm
Aishwarya98:
mark me as brainliest now please..
Answers
Answered by
7
Algorithm for sum of digit of integers:
1. Get the input number
2. Initialize the sum to zero
3. While loop (if the number not equal to zero)
4. get the remainder by input number mod 10
5. Add remainder to sum
6. Divide the number by 10
7. Print the sum.
Attachments:
Answered by
0
Answer:
write an algorithm to find the sum of the digits in a given number
Similar questions
Math,
8 months ago
Economy,
8 months ago
Computer Science,
8 months ago
Business Studies,
1 year ago
Math,
1 year ago