Programming Course in C# ¡Free!

Solution A. Draw a rectangle 1

 Friday, May 26, 2017 published by Exercises C#
using System;
public class Exercise
{
    public static void Main()
    {
        string digit = Console.ReadLine();
    
        Console.WriteLine("{0}{0}{0}",digit);
        Console.WriteLine("{0} {0}",digit);
        Console.WriteLine("{0} {0}",digit);
        Console.WriteLine("{0} {0}",digit);
        Console.WriteLine("{0}{0}{0}",digit);
    }
}