I need to write a function that will ask for an integer. The function needs to determine the sign (positive or negative) and the number of times a digit appear in the given integer for all possible digits (i.e., 0, 1, 2,…9). I'm stuck because I don't know how to use mod/loops to extract each number from the possible input (which can be anything from a 1 digit number  to a 10 digit number )
A sample of the output should be :
Enter an integer: 1034029
The sign : +
The counts of digits:
P.S. Can't use arrays (haven't learned them yet)
So basically, my real problem is how to extract each single number from the input at a time until there is no number to extract.