Untitled
unknown
plain_text
3 years ago
342 B
3
Indexable
#include <iostream> #include <cmath> using namespace std; int main() { int n ; cin >> n; int mas[100][100]; for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { mas[i][j] = i * j; } } for (int i = 1; i <= n; i++) { for (int j = 1; j <= n; j++) { cout << mas[i][j]<<" "; } cout << endl; } }
Editor is loading...