Computers and Technology

What is the value of sum at the end of the following program:
#include #include using namespace std;
int main ()
{ int count = 10;
double sum = 0;
while (count > 8) {
sum = sum + pow(count, 2.0);
count--; }
cout < < sum < < endl; }

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 14:30, qxchung7310
The “rule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, quanharris2k19
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
image
Computers and Technology, 24.06.2019 04:30, minecrafter3882
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
Do you know the correct answer?
What is the value of sum at the end of the following program:
#include #include using namesp...

Questions in other subjects:

Konu
Mathematics, 22.01.2021 21:30
Konu
Mathematics, 22.01.2021 21:30
Konu
Mathematics, 22.01.2021 21:30