Foibs

Pinakas pou dineis times

Nov 21st, 2019
122
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.  
  3. namespace ConsoleApp1
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             int[,] array = new int[4, 4];
  10.  
  11.             Console.WriteLine("Dhlwse noumerakia trele mou ;)");
  12.  
  13.             for (int i = 0; i < 4; i++)
  14.             {
  15.                 for (int j = 0; j < 4; j++)
  16.                 {
  17.                     array[i, j] = int.Parse(Console.ReadLine());
  18.                 }
  19.             }
  20.  
  21.             Console.Clear();
  22.  
  23.             for (int i = 0; i < 4; i++)
  24.             {
  25.                 for (int j = 0; j < 4; j++)
  26.                 {
  27.                     Console.WriteLine("Trele mou gia to shmeio {0},{1} exeis dwsei thn timoula {2}", i, j, array[i, j]);
  28.  
  29.                 }
  30.             }
  31.         }
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment