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 5050The 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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here