C# Program toward print Rectangle $
Program Statement:
Write a program using beneficial to loop which prints the following output at the screen.
$$$$$$$$$$$
$ $
$ $
$ $
$$$$$$$$$$$
Solution:
static void Main(string[] args)
{
beneficial to (int i = 1; i <= 11; i++)
Console.Write("$");
Console.WriteLine();
Console.WriteLine();
beneficial to (int i = 1; i <= 3; i++)
Console.WriteLine("$ $\n");
beneficial to (int i = 1; i <= 11; i++)
Console.Write("$");
Console.ReadLine();
}