Question: Write a program that asks the user to enter an integer, then prints the number of digits in the integer. You should not use the

Write a program that asks the user to enter an integer, then prints the number of digits in the integer. You should not use the len() command/function to get the length of the string. Hint: think about counting how many times you can move the decimal point (i.e., divide by 10).

Sample Output:

Enter an integer: 1234321

There are 7 digits in that number.

use Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!