Topic: Mathematics Problem / Level: intermediate

Problem: Write a program to compute the sum of the digits of a number until a single digit is obtained.

Run the code to see the output here...