Problem

(Modify) Modify Program to produce a table of the numbers 0 through 20 in increments of 2,...

(Modify) Modify Program to produce a table of the numbers 0 through 20 in increments of 2, with their squares and cubes.

#include #include using namespace std;int main( ){const int MAXNUMS = 10;int num;cout << "NUMBER SQUARE CUBE\n"<< "------ ------ ----\n";for (num = 1; num <= MAXNUMS; num++)cout << setw(3) << num << " "<< setw(3) << num * num << " "<< setw(4) << num * num * num << endl;return 0;}

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5.3