b. Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: •
Posted: Sat Feb 19, 2022 3:21 pm
b. 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: numi 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. (5 marks)