Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. namespace zadanie_tabela
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int[,] tab = new int[2, 2];
  10. tab[0, 0] = 12;
  11. tab[0, 1] = 1;
  12. tab[1, 0] = -293;
  13. tab[1, 1] = 128;
  14. Console.ReadKey();
  15.  
  16. int[,] tab2 = new int[2, 2]
  17. {
  18. { 12, 1},
  19. {-293, 128 },
  20. };
  21.  
  22. for (int i = 0; i < 2; i++)
  23. for (int j = 0; j < 2; j++)
  24. {
  25. Console.WriteLine(tab[i,j]);
  26. }
  27.  
  28. Console.ReadKey();
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement