Write a program that reads an integer and prints how many digits it has by checking whether the number is >= 10, >= 100, and so on. However, if the number is greater than a million, just print "lots". If the number is negative, then first multiply it by -1. PYTHON

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 7E: Write a program named GuessingGame that generates a random number between 1 and 10. (In other words,...
icon
Related questions
Question
  1. Write a program that reads an integer and prints how many digits it has by checking whether the number is >= 10, >= 100, and so on. However, if the number is greater than a million, just print "lots". If the number is negative, then first multiply it by -1.

PYTHON

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,