Hello,
I have a problem with coding circumscribed rectangle in C# console application.
Whith that code i get just filled rectangle which is not correct fot my task:
//Entering dimensions of the rectangle
Console.Write("Enter the height of the rectangle: ");
int Height = int.Parse(Console.ReadLine());
Console.Write("Enter the width of the rectangle: ");
int Width = int.Parse(Console.ReadLine());
Console.WriteLine("--------------------------------------");
//Display lines
for (int i = 1; i <= Height; i++)
{
//Display columns
for (int j = 1; j <= Width; j++)
{
Console.Write("*");
}
//Go to the next line
Console.WriteLine();
}
Console.ReadLine();
I need to get the circumscribed rectangle which seems something like that:
http://img232.imageshack.us/img232/1260/rectangle.jpg
If anyone can help me with that task to work correctly,
I'm gonna to support this website.
Any help is welcome,
Regards,
bisiii