# Using a while loop, print program that asks the user to enter a number that is larger than 10. The

## Question:

Using a while loop, print program that asks the user to enter a number that is larger than 10. The program will continue asking for a number until a number that is larger than 10 has been entered. If the number entered, call it x, is less than 10 a message, "x is too small by at least y" is printed where y is the smallest number that must be added to x to make it greater than 10. If the number entered is equal to 10, a message, "x is not greater than 10" is printed. If the number entered is greater than 10, a message, "x is valid" is printed. Once a valid number is found, the program will print "Done"

Example:

Enter a number larger than 10: 5

5 is too small by at least 6

Enter a number larger than 10: 10

10 is not greater than 10

Enter a number larger than 10: 15

15 is valid

Done

**Related Book For**

## Systems analysis and design

ISBN: 978-0136089162

8th Edition

Authors: kenneth e. kendall, julie e. kendall

**View Solution**

**Cannot find your solution?**