Advertisement
Mauzzz0

10.1

Nov 20th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <cstring>
  2. #include <cstdio>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main() {
  9.     int row, col;
  10.     printf_s("Input amount of rows:\n");
  11.     scanf_s("%d",&row);
  12.     printf_s("Input amount of columns:\n");
  13.     scanf_s("%d",&col);
  14.     int** arr = new int*[row];
  15.     for(int i = 0;i<row;i++)
  16.     {
  17.         arr[i]=new int[col];
  18.     }
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement