(Modify) Modify Program to produce a table of numbers from 10 to 1, instead of 1 to 10, as it currently does.
#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.