Question: Perform the following within a comprehensive program according to the following requirements, based on the attached example to understand the concept: a ) Create a

Perform the following within a comprehensive program according to the following
requirements, based on the attached example to understand the concept:
a) Create a program that accepts two numbers from users.
b) Create a loop to print a range of numbers starting from the first number to the second number entered
by the user.
c) The start and end of the range should not be printed. For example, if the first number is 1 and the
second number is 5, you should print 2,3,4.
d) If the first number is greater than the second number, reverse the numbers (e.g. If the person enters the
first number as 5 and the second number as 1, reverse the numbers and make the range start from 1 to
e) Do not print even numbers within the range.
More details about input and output as below
1**
Test case 1
Number One: 1
Number Two: 9
output: 3,5,7
Test case 2
Number one: 2
Number Two: 15
Output: 3,5,7,9,11,13
Test Case 3
Number One: 8
Number Two: 2
output: 3,5,7
 Perform the following within a comprehensive program according to the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!