b. Write an appropriate C++ program segment that use any repetition (loop) statements to perform the following steps: •
-
answerhappygod
- Site Admin
- Posts: 899604
- 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!