Guest User

Untitled

a guest
Mar 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x;
  8.  
  9. cout << "How many rows would you like? " << endl;
  10. cin >> x;
  11. cout << endl;
  12. cout << "Number| Power 1| Power 2| Power 3| Power 4| Power 5" << endl;
  13.  
  14. for (int j=0; j<=x; j++)
  15. {
  16. cout << j << "t" << j << "t" << pow(j,2) << "t" << pow(j,3) <<
  17. "t" << pow(j,4) << "t" << pow(j,5) << endl;
  18.  
  19. }
  20.  
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment