Question: Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: Prompt the user to input two integers:

Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: Prompt the user to input two integers: num1 and num2 (Assume: num1 must be less than num2) Display all odd numbers from num1 up to num2 inclusively. Calculate and display the average of all odd numbers from num1 up to num2 inclusively.
Step by Step Solution
There are 3 Steps involved in it
include iostream int main int num1 num2 Prompt the user to input num1 and num2 with validation that ... View full answer
Get step-by-step solutions from verified subject matter experts
