Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class MalkoKote
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- char kitty = char.Parse(Console.ReadLine());
- Console.WriteLine(" " + kitty + new string(' ', (n / 2 + 1) / 2 - 2) + kitty);
- for(int row = 0; row < n/4 - 1; row ++ )
- {
- Console.Write(' ');
- Console.Write(new string(kitty, (n / 2 + 1) / 2));
- Console.WriteLine();
- }
- for (int row = 0; row < n / 4 - 1; row++)
- {
- Console.Write(" ");
- Console.Write(new string(kitty, ((n / 2 + 1) / 2) - 2));
- Console.WriteLine();
- }
- for (int row = 0; row < n / 4 - 1; row++)
- {
- Console.Write(' ');
- Console.Write(new string(kitty, (n / 2 + 1) / 2));
- Console.WriteLine();
- }
- Console.Write(' ');
- Console.Write(new string(kitty, (n / 2 + 1) / 2));
- Console.Write(" ");
- Console.Write(new string(kitty, ((n / 2 + 1) / 2) - 1));
- Console.WriteLine();
- int rows = (n / 2 + 1) / 2;
- for (int row = 0; row < rows; row++)
- {
- Console.Write(new string(kitty, rows + 2));
- Console.Write(new string(' ', 2));
- Console.Write(kitty);
- Console.WriteLine();
- }
- Console.Write(new string(kitty, rows + 2));
- Console.Write(' ');
- Console.Write(new string(kitty, 2));
- Console.WriteLine();
- int width = rows + 2 + rows;
- int tail = ((n / 2 + 1) / 2) - 1;
- Console.Write(' ');
- Console.Write(new string(kitty, width - tail));
- Console.WriteLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement