C program to print digits of a number

C program to print digits of a number

Output:

Enter a number to print its digits seperately:
1234
The digits of the number are:
1
2
3
4

Implementation: