- B Write An Appropriate C Program Segment That Use Any Repetition Loop Statements To Perform The Following Steps 1 (130.43 KiB) Viewed 45 times
b. Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: •
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
b. Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: •
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)