Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace goto_statements
- {
- class Program
- {
- static void Main()
- {
- int a, b, c, d, e, f, g, h;
- a = Convert.ToInt32(Console.ReadLine());
- b = Convert.ToInt32(Console.ReadLine());
- c = Convert.ToInt32(Console.ReadLine());
- d = Convert.ToInt32(Console.ReadLine());
- e = Convert.ToInt32(Console.ReadLine());
- f = Convert.ToInt32(Console.ReadLine());
- g = Convert.ToInt32(Console.ReadLine());
- h = Convert.ToInt32(Console.ReadLine());
- int[,] tablica = new int[4,4];
- tablica[0,0] = a;
- tablica[0,1] = b;
- tablica[0,2] = c;
- tablica[0,3] = d;
- tablica[1,0] = e;
- tablica[1,1] = f;
- tablica[1,2] = g;
- tablica[1,3] = h;
- foreach (int element in tablica)
- Console.Write("{0} \t", element);
- Console.WriteLine("");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement