- Write a program in C# Sharp to display the individual digits of a given number using recursion.
- Test Data :
- Input any number : 1234
- Expected Output :
- The digits in the number 1234 are : 1 2 3 4
Hints:
- Convert int to string and get the length.
- Get the divisor for given number where Quotient will be the first digit and reminder will be rest of the integer.
- Print the digit and repeat the process using recursion.