Write a C++ program called SumAndAverage to produce the sum of 1, 2, 3, ..., to an upperbound (e.g., 100). Also compute and display the average. The output shall look like: The sum is 5050 The average...


Write a C++ program called SumAndAverage to produce the sum of 1, 2, 3, ..., to an upperbound
(e.g., 100). Also compute and display the average. The output shall look like:
The sum is 5050
The average is 50.5
 Modify the program to use a "while" loop instead of "for" loop.
 Modify the program to use a "do-while" loop instead of "for" loop.


the answer should be in C++ language


this is complete question


there are 2 cases use while loop instead of for loop


use do while loop instead of for loop.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here