static void Main(string[] args) { System.Console.WriteLine("Podaj liczbę rzędów bombonierki"); int rz = int.Parse(Console.ReadLine()); System.Console.WriteLine("Podaj liczbę kolumn bombonierki"); int klmn = int.Parse(Console.ReadLine()); int[,] bomb = new int[rz, klmn]; System.Console.WriteLine("podaj rząd czekoladki,którą chcesz zjeść"); int wart1 = int.Parse(Console.ReadLine()); System.Console.WriteLine("podaj kolumnę czekoladki,którą chcesz zjeść "); int wart2 = int.Parse(Console.ReadLine()); int rzad = wart1 - 1; int kolumna = wart2 - 1; bomb[rzad, kolumna] = 1; for (int x = 0; x < bomb.GetLength(0); x++) { for (int y = 0; y < bomb.GetLength(1); y++) { Console.WriteLine("[" + (x + 1) + "," + (y + 1) + "] = " + bomb[x, y]); } } Console.WriteLine("Zjadłeś czekoladkę z rzędu: " + wart1 + " i kolumny: " + wart2); }