(What Does this Program Do?) What does the following program print?
```
// Exercise 4.12: Mystery.cpp
#include
using namespace std;
int main() {
unsigned int x{1};
unsigned int total{0};
while (x <= 10) {
int y = x * x;
cout << y << endl;
total += y;
++x;
}
cout << "Total is " << total << endl;
}
```
The program prints the squares of the integers from 1 to 10 and the sum of those
squares. Instructor Note: We should have changed line 10 to int y{x * x};
Computer Science & Information Technology
You might also like to view...
The priming read is an example of a(n) ____ task.
A. declaration B. exit C. housekeeping D. selection
Computer Science & Information Technology
Changes you make to a photo do not become permanent until you _________________________ or store them on a storage device.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology