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