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