boook

a050

Nov 2nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iomanip>  
  2. #include <iostream>  
  3. using namespace std;  
  4.  
  5. int n;  
  6.  
  7. int main(){  
  8.     cin >> n;  
  9.     for(int i = 1; i <= n ; i ++){  
  10.         for(int j = 1; j <= n; j ++){  
  11.             cout << j << "x" << i << "=";  
  12.             cout << setw(2) << j * i << "  ";  
  13.         }  
  14.         cout << endl;  
  15.     }  
  16.     return 0;  
  17. }
Add Comment
Please, Sign In to add comment