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);
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}