bool true while false work ar ref ref n1 ref mas bool t2 true while t2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
bool t = true;
while (t)
{
t = false;
work(ar, ref k, ref n1, ref mas);
bool t2 = true;
while (t2) {
t2 = false;
gorizont(ref mas, k, n1, ref t2);
verticale(ref mas, k, n1, ref t2);
if (t2) {
t1 = true;
}
}
makestring(mas, k, n1, ref ar);
printmas(mas, k, n1);
Console.WriteLine();
}