Question: Write a function that takes TWO parameters to print all the odd and even numbers between a given range. Input the starting value of the

Write a function that takes TWO parameters to print all the odd and even numbers between a given range. Input the starting value of the range and ending value of the range. Then, send them as the parameters to your function.
Sample Input:
Staring range: 12
Ending range: 23
Sample Output:
Odd numbers in that range: 131517192123
Even numbers in that range: 121416182022
Write the code in cpp and explain.

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!