Question: This program is in the C language. Single digit: Write the code of a recursive function sumToSingleDigit to sum the digits of a number n
This program is in the C language.

Single digit: Write the code of a recursive function sumToSingleDigit to sum the digits of a number n until you are left with a single digit number. Write a test code which takes the value of n as input and outputs the single digit sum. Example Input: 2507 Example Output: 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
