Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char znak;
- int x, y;
- Console.WriteLine("Podaj szerokosc: ");
- x = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Podaj wysokosc: ");
- y = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Podaj znak: ");
- znak = Convert.ToChar(Console.ReadLine());
- for (int i = 0; i < y; i++)
- {
- for (int j = 0; j < x; j++)
- {
- if (i == 0 || i == y - 1 || j == 0 || j == x - 1)
- Console.Write(znak);
- else Console.Write(" ");
- }
- Console.WriteLine();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement