20 lines
419 B
C#
20 lines
419 B
C#
// Draw a rectangle in the console
|
|
Console.Write("how naby rows ?: ")
|
|
int rows = Convert.ToInt32(Console.ReadLine())
|
|
|
|
Console.Write("how many columns ?: ")
|
|
int columns = Convert.ToInt32(Console.ReadLine())
|
|
|
|
Console.Write("What symbol: ")
|
|
int columns = Console.ReadLine()
|
|
|
|
for (int i = 0; i < rows; i++){
|
|
|
|
for (int j = 0 ; i < columns; j++)
|
|
{
|
|
Console.Write(symbol);
|
|
}
|
|
Console.WriteLine();
|
|
|
|
}
|