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