using System;
/* Rectangle Problem
* Take a list of strings an prints them, one per line, in a rectangular frame.
*
* For example the list ["Hello", "World", "in", "a", "frame", "My First Name", "My Last Name"] gets printed as:
*****************
* Hello *
* World *
* in *
* a *
* frame *
* My First Name *
* My Last Name *
* And for example the list ["Hello", "World", "in", "a", "frame", "Test", "One"] gets printed as:
*********
* Test *
* One *
*/
public class Program
{
public static void Main()
string[] strArr = new string[] {"Hello", "World", "in", "a", "frame", "My First Name", "My Last Name"};
foreach(string s in strArr)
Console.WriteLine(s);
}
//Console.WriteLine("Hello World");
Graphics g = frm.CreateGraphics();
p selP = new pen