(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;}
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.