Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.14 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace goto_statements
  6. {
  7.     class Program
  8.     {
  9.         static void Main()
  10.         {
  11.             int a, b, c, d, e, f, g, h;
  12.             a = Convert.ToInt32(Console.ReadLine());
  13.             b = Convert.ToInt32(Console.ReadLine());
  14.             c = Convert.ToInt32(Console.ReadLine());
  15.             d = Convert.ToInt32(Console.ReadLine());
  16.             e = Convert.ToInt32(Console.ReadLine());
  17.             f = Convert.ToInt32(Console.ReadLine());
  18.             g = Convert.ToInt32(Console.ReadLine());
  19.             h = Convert.ToInt32(Console.ReadLine());
  20.  
  21.             int[,] tablica = new int[4,4];
  22.             tablica[0,0] = a;
  23.             tablica[0,1] = b;
  24.             tablica[0,2] = c;
  25.             tablica[0,3] = d;
  26.             tablica[1,0] = e;
  27.             tablica[1,1] = f;
  28.             tablica[1,2] = g;
  29.             tablica[1,3] = h;
  30.  
  31.            
  32.            
  33.             foreach (int element in tablica)
  34.                 Console.Write("{0} \t", element);
  35.             Console.WriteLine("");
  36.             Console.ReadKey();
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement