okay here is the task I must do...but I can't do it for the life of me...can any one of you figure this code out and show it to me?
3. Modify the above program, so that if the number entered is lower than 10 a message, "That number is lower than 10" is printed. If the number entered is equal to 10, a message, "That number is equal to 10" is printed . If the number entered is higher than 10, a message "That number is valid" followed by the message "Done" is printed. You will need to use a while loop as well as an if-else statement.
Sample input and output :
Enter a number larger than 10 : 5
That number is lower than 10
Enter a number larger than 10 : 10
That number is equal to 10
Enter a number larger than 10 : 15
That number is valid
Done
3. Modify the above program, so that if the number entered is lower than 10 a message, "That number is lower than 10" is printed. If the number entered is equal to 10, a message, "That number is equal to 10" is printed . If the number entered is higher than 10, a message "That number is valid" followed by the message "Done" is printed. You will need to use a while loop as well as an if-else statement.
Sample input and output :
Enter a number larger than 10 : 5
That number is lower than 10
Enter a number larger than 10 : 10
That number is equal to 10
Enter a number larger than 10 : 15
That number is valid
Done
Comment