I have this program that calculates the sum of the digits in a number but I have to make it recursive and i have no idea how a recursive function would even work for this kind of problem.

Where would I start?

Code:int digit = 0; int sum = 0; int number; printf("Enter a number:\n"); scanf("%d", &number); while(number != 0) { digit = number % 10; sum = sum + digit; number = number / 10; } printf("The sum of the digits is:\n%d", sum);