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