Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include "iomanip"
- using namespace std ;
- int main() {
- int n, x, count = 1;
- cin >> n;
- int a[n][n];
- for (int i = 0; i < n; i++)
- for (int j = 0; j < n; j++)
- a[i][j] = i * j;
- for (int i = 1; i < n; i++){
- for (int j = 1; j < n; j++)
- cout << setw(4) << a[i][j] << ' ';
- cout << endl;
- }
- return 0;
- }
- // 1 2 3 3 4 5 7 8 9 0
- // 0 9 8 7 6 5 4 3 2 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement