Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- cout << "How many rows would you like? " << endl;
- cin >> x;
- cout << endl;
- cout << "Number| Power 1| Power 2| Power 3| Power 4| Power 5" << endl;
- for (int j=0; j<=x; j++)
- {
- cout << j << "t" << j << "t" << pow(j,2) << "t" << pow(j,3) <<
- "t" << pow(j,4) << "t" << pow(j,5) << endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment