Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Sunglasses
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- for (int row = 0; row < n; row++)
- {
- for (int col = 0; col < 5 * n; col++)
- {
- if (col >= 2 * n && col < 3 * n)
- {
- if (row == (n - 1) / 2)
- {
- Console.Write("|");
- }
- else
- {
- Console.Write(" ");
- }
- }
- else if ((row == 0 || row == n - 1) || (col == 0 || col == 2 * n - 1 || col == 3 * n || col == 5 * n - 1))
- {
- Console.Write("*");
- }
- else Console.Write("/");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement