Page 1 of 1

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
by answerhappygod
B Write An Appropriate C Program Segment That Use Any Repetition Loop Statements To Perform The Following Steps 1
B Write An Appropriate C Program Segment That Use Any Repetition Loop Statements To Perform The Following Steps 1 (130.43 KiB) Viewed 46 times
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)