Saturday, March 8, 2014

A Program that calculates the sum of the digits entered by the user successively until the sum reduces to a single digit


By on 10:37 PM

In this page I have written the program that calculates the sum successively until the sum reduces to a single digit. For this I have used nested loop as while and do while. For example, 12345=>1+2+3+4+5=>15=>1+5=>6. For more information have a look for the source code and the output below:
The output of the program is:
The main source code for the above program is:


About Authors

Aakash and Shreeram are owners of this website. Both are engineering student. Aakash is studying computer engineering and has passion with blogs and love to play with it while Shreeram is studying civil engineering and has dream of implementing technology in practical life.

0 comments :

Post a Comment