|
// Exercise 2.12
// Create an application that displays a table of powers.
#include <iostream> // required to perform C++ stream I/O
using namespace std; // for accessing C++ Standard Library members
// function main begins program execution
int main() { cout << "Number\tSquare\tCube\n0\t0\t0\n1\t1\t1\n2\t4\t8\n3\t9\t27\n4\t16\t64\n5\t25\t125\n"; system("pause"); return 0; // indicate that program ended successfully
} // end function main
|