Advertisement
k_vychodilova

Vypis matice

Dec 1st, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. {
  2.  
  3. Online Pascal Compiler.
  4. Code, Compile, Run and Debug Pascal program online.
  5. Write your code in this editor and press "Run" button to execute it.
  6.  
  7. }
  8.  
  9.  
  10. program Hello;
  11. var i,j,N,M,a:integer;
  12. matice: array[1..3,1..4] of integer;
  13. begin
  14. matice[1,1]:=1;
  15. matice[1,2]:=1;
  16. matice[1,3]:=6;
  17. matice[1,4]:=3;
  18. matice[2,1]:=9;
  19. matice[2,2]:=2;
  20. matice[2,3]:=5;
  21. matice[2,4]:=4;
  22. matice[3,1]:=2;
  23. matice[3,2]:=5;
  24. matice[3,3]:=4;
  25. matice[3,4]:=7;
  26. M:=3;
  27. N:=4;
  28. a:=0;
  29. i:=0;
  30. j:=0;
  31.  
  32. repeat i:=i+1;
  33. j:=0;
  34. writeln(' ');
  35. repeat j:= j+1;
  36. write(matice[i,j], ' ');
  37. until j=N;
  38. until i=M;
  39.  
  40.  
  41.  
  42. end.
  43.  
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement