Ziomnexpl

wyświetlanie_tablicy_wielowymiarowej_za_pomocą_macierzy C#

Nov 20th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace tablice
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int[,] tablica = new int[10, 10];
  10.             for (int i = 0; i < 10; i++)
  11.             {
  12.                 for (int j = 0; j < 10; j++)
  13.                 {
  14.                     Console.Write(tablica[i, j] + " ");
  15.                 }
  16.                 Console.WriteLine();
  17.             }
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment