Question: 5.4) Develop a program that prompts the user for two numbers. Input these numbers into variables Y and X. Using a FOR LOOP or
5.4) Develop a program that prompts the user for two numbers. Input these numbers into variables Y and X. Using a FOR LOOP or a WHILE LOOP, print each value from Y to X. If the value of X is smaller than Y, print an appropriate message. Develop a program that prompts the user for two numbers. Input these numbers into variables Y and X. Using a FOR LOOP or a WHILE LOOP, print each value from Y to X. If the value of X is smaller than Y, print each value from Y to X in negative increments. 5.4) Develop a program that prompts the user for two numbers. Input these numbers into variables Y and X. Using a FOR LOOP or a WHILE LOOP, print each value from Y to X. If the value of X is smaller than Y, print an appropriate message. Develop a program that prompts the user for two numbers. Input these numbers into variables Y and X. Using a FOR LOOP or a WHILE LOOP, print each value from Y to X. If the value of X is smaller than Y, print each value from Y to X in negative increments.
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
Python import sys def checkInput try y intinputEnter the first number x intinputEnter the second number except ValueError printInvalid input Please en... View full answer
Get step-by-step solutions from verified subject matter experts
