Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             int i = 0;
  13.             int j = 0;
  14.             int[,] pole = new int[i,j];
  15.             for (int radek = 0; radek <= 4; radek++)
  16.             {
  17.                 for (int sloupec = 0; sloupec <= 4; sloupec++)
  18.                 {
  19.                     i = sloupec;
  20.                     j = radek;
  21.                     pole[i,j] = Console.Read();
  22.                     Console.WriteLine(pole[i,j]);
  23.                     if (sloupec == 4)
  24.                         Console.ReadLine();
  25.                 }
  26.             }
  27.             Console.ReadLine();
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement