Computer Science, asked by athira13, 2 months ago

Write a C++ program for Finding sum of digits of a number until sum becomes single digit.​

Answers

Answered by tanishamandle031
0

Answer:

1.Initialize a number.

2.Initialize the sum to 0.

3.Iterate until the sum is less than 9. Add each digit of the number to the sum using modulo operator.

4.Print the sum.

Similar questions