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