then average the digits. You must use a while loop and % to access each of the individual digits. Use / to reduce the number so that you can average all of the digits.
Example: num = 123 can be taken apart with tempNum = 123 % 10 (which will pull off the 3), then tempNum = tempNum / 10 (will result in 12). Do this in a loop while the number is > 0.
Sample Data :
234
10000
111
9005
84645
8547
123456789
Be sure to include print statements that will format the output as below.
Sample Output :
234 has a digit average of 3.0
10000 has a digit average of 0.2
111 has a digit average of 1.0
9005 has a digit average of 3.5
84645 has a digit average of 5.4
8547 has a digit average of 6.0
123456789 has a digit average of 5.0