Question: Extra credit ) Write a Python program that gets a positive integer value as input and prints the number of digits in the integer. You

Extra credit)Write a Python program that gets a positive integer value as input and prints the number of digits in the integer. You can only use loops to compute the length of the number. Do not use strings.
For example, if user enters 57,the output would be 2.If the user enters 0,the output would be 1.

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 Programming Questions!