Untitled

mail@pastecode.io avatar
unknown
csharp
2 years ago
444 B
0
Indexable
Never
class Program
    {
        static void drawRect(char x, int row, int col)
        {
            for (int i = 0; i < row; i++)
            {
                Console.WriteLine();
                for (int y = 0; y < col; y++)
                {
                    Console.Write(x);
                }
            }
        }
        static void Main(string[] args)
        {
            drawRect('\u0070', 15, 10);
        }
    }