class Program
{
static void Main(string[] args)
{
marco(1,1,75,25,'*');
marco( 4, 4, 60, 7, '*');
marco( 4, 8, 30, 11, '*');
marco(4, 13, 60,16, '*');
marco(4, 18, 60, 21, '*');
mensaje(5, 5, "AKI PON EL NOMBRE K KIERAS K APARESCA");
mensaje(5, 9, "2 A");
mensaje(5,14,"Tec.informacion");
mensaje(5, 19, " Programacion basica");
Console.ReadKey();
}
static void marco(int x1, int y1,int x2, int y2,char caracter)
{
int x, y;
for (x = x1; x <= x2; x++)
{
Console.SetCursorPosition(x, y1);
Console.Write(caracter);
Console.SetCursorPosition(x, y2);
Console.Write(caracter);
}
for (y = y1; y <= y2; y++)
{
Console.SetCursorPosition(x1, y);
Console.Write(caracter);
Console.SetCursorPosition(x2, y);
Console.Write(caracter);
}
}
static void mensaje(int x,int y,string frase)
{
Console.SetCursorPosition(x, y);
Console.Write(frase);
}
}
}
BYEEEEE