using System;
class Program
{
static void Main() {
int[,] arr = new int[3, 4];
for (int i = 0; i < arr.GetLength(0); i++) {
for (int j = 0; j < arr.GetLength(1); j++) {
arr[i, j] = (i + 1) * j;
Console.WriteLine(arr[i, j]);
}
}
for (int i = 0; i < arr.GetLength(0); i++) {
for (int j = 0; j < arr.GetLength(1); j++) {
if (arr[i, j] == 6) {
goto Found;
}
}
}
Console.WriteLine("Not found");
goto Finish;
Found:
Console.WriteLine("Found");
Finish:
Console.WriteLine("End of program");
}
}
/*
run:
0
1
2
3
0
2
4
6
0
3
6
9
Found
End of program
*/