#include<iostream>#include<iomanip>using namespace std;int **create(int n, int m){ int k = 0; int **arr = new int*[n]; for (int i = 0; i < n; i++) { arr[i] = new int[m]; } for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (arr[i][0]) { arr[i][0] = i; } if (arr[i][1]) { arr[i][1] = i * i; } if(arr[i][2]) { arr[i][2] = pow(i, 3); } } } return arr;}void print(int **arr, int n, int m){ for (int i = 1; i < n; i++) { for (int j = 0; j < m; j++) { cout << setw(5) << arr[i][j] << "\t"; } cout << endl; }}int main(){ setlocale(LC_ALL, "ru"); int n, m = 3; cout << "Введите число n = "; cin >> n; int**arr = create(n,m); cout << endl; print(arr, n, m); cout << endl; system("PAUSE"); return 0;}