Guest User

Untitled

a guest
Nov 22nd, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. 2 1 2 3 4
  2.  
  3. 1 2
  4. 3 4
  5.  
  6. int dim;
  7. int *m = (int *)malloc(dim* dim* sizeof(int))
  8.  
  9. scanf("%d", &dim);
  10.  
  11. for (r = 0; r < dim; ++r)
  12. {
  13. for (c = 0; c < dim; ++c)
  14. {
  15. scanf("%d", &m[dim * r + c]);
  16. }
  17. }
Add Comment
Please, Sign In to add comment