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