Computer Science, asked by Niishi8417, 1 year ago

Algorithm and flowchart of sum of digit of integer number c++ algorithm


Aishwarya98: mark me as brainliest now please..

Answers

Answered by Aishwarya98
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:

Aishwarya98: mark me as brainliest..
Answered by ameerzaadi683
0

Answer:

write an algorithm to find the sum of the digits in a given number

Similar questions