Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. scanf(n);
  2. matrica1[n][2n];
  3. matrica2[2n][n];
  4. for(i = 0; i < n; i++){
  5. for(j = 0; j < 2n; j++){
  6. scanf(matrica1[i][j]);
  7. }
  8. }
  9. for(i = 0; i < n; i++){
  10. for(j =0; j < n; j++){
  11. matrica2[i][j]=matrica1[i][j];
  12. }
  13. }
  14. for(i = 0; i < n; i++){
  15. for(j = n; j < 2n; j++){
  16. matrica2[i+n][j-n]=matrica1[i][j];
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement