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