Question: The code should be in C++ language Write a C++ program that displays the odd numbers between the user-specified range by incorporating the following concepts
The code should be in C++ language
Write a C++ program that displays the odd numbers between the user-specified range by incorporating the following concepts (do while loop, function calls, function declaration, function definition, and global variable) in your program. You should have to print the odd numbers from minimum number to maximum
number.
Sample Output:
Enter first number: 4
Enter second number: 20
Odd numbers between the range 4-20 are:
5 7 9 11 13 15 17 19
Sample output for 2nd case (If the first number is greater)
Enter first number: 20
Enter second number: 4
Odd numbers between the range 4-20 are:
5 7 9 11 13 15 17 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
