Develop a c++ code that will accept two integer numbers (Minimum and Maximum). The program should determine and display the odd and even numbers between the two numbers. Calculate and Display the total of Odd numbers and Even numbers and the number of Odd and even numbers between the two numbers.
Develop a c++ code that will accept two integer numbers (Minimum and Maximum). The
program should determine and display the odd and even numbers between the two numbers.
Calculate and Display the total of Odd numbers and Even numbers and the number of Odd and
even numbers between the two numbers.
Consider the below points:
1. The program should be able to process if the minimum value captured is less than the
maximum value captured. The program should determine and display odd and even
numbers between the two numbers in ascending order.
2. The program should be also able to process if the minimum value captured is greater
than the maximum value captured. The program should determine and display odd and
even numbers between the two numbers in descending order.
Step by step
Solved in 2 steps with 1 images