Main.cs
usingSystem;classProgram {-
publicstaticintMain() { -
intline;//строка -
intcolumn;//столбец -
charfill;//заполнитель -
Console.Write("Введите количество строк : "); -
line =int.Parse(Console.ReadLine()); -
Console.Write("Введите количество столбцов : "); -
column =int.Parse(Console.ReadLine()); -
Console.Write("Введите заполнитель : "); -
fill = (char)Console.Read(); -
Console.WriteLine(); -
for(inti=0; i<line; i++) { -
for(intj=0; j<column; j++) { -
Console.Write(fill); -
} -
Console.WriteLine(); -
} -
Console.ReadKey(); -
return0; -
} }
usingSystem;classProgram {-
publicstaticintMain() { -
intline;//строка -
intcolumn;//столбец -
charfill;//заполнитель -
Console.Write("Введите количество строк : "); -
line =int.Parse(Console.ReadLine()); -
Console.Write("Введите количество столбцов : "); -
column =int.Parse(Console.ReadLine()); -
Console.Write("Введите заполнитель : "); -
fill = (char)Console.Read(); -
Console.WriteLine(); -
for(inti=0; i<line; i++) { -
for(intj=0; j<column; j++) { -
Console.Write(fill); -
} -
Console.WriteLine(); -
} -
Console.ReadKey(); -
return0; -
} }
Введите количество строк : 6
Введите количество столбцов : 6
Введите заполнитель : $
$$$$$$
$$$$$$
$$$$$$
$$$$$$
$$$$$$
$$$$$$
Введите количество столбцов : 6
Введите заполнитель : $
$$$$$$
$$$$$$
$$$$$$
$$$$$$
$$$$$$
$$$$$$