Question
I am struggling with this question. can you help me out? 2. Write a program that displays a range of numbers specified by user. a)
I am struggling with this question. can you help me out?
2. Write a program that displays a range of numbers specified by user. a) Request a minimum and maximum value between 1 and 100.
b) Validate that min < max via an input loop.
c) Output all numbers in between the maximum and minimum (excluding max and min). Output Example: Display a Range
---------------
Enter a minimum value between 1 and 100: -10
Enter a maximum value between 1 and 100: 20 Values must be within specified range. Enter a minimum value between 1 and 100: 50
Enter a maximum value between 1 and 100: 40 Minimum value must be greater than maximum value. Enter a minimum value between 1 and 100: 34
Enter a maximum value between 1 and 100: 54
53 52 51 50 49 48 47 46 45 44 43 42 41 39 38 37 36 35
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started