Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int width = 4 * n + 1, height = 2 * n + 5;
- int dots = (width / 2) - 1, mixedRows = height - 1;
- int dash = 1, dCopy = dots;
- Console.WriteLine(new string('.', dots) + '/' + '|' + "\\" + new string('.', dots));
- Console.WriteLine(new string('.', dots) + "\\" + '|' + '/' + new string('.', dots));
- Console.WriteLine(new string('.', dots) + new string('*', 3) + new string('.', dots));
- for (int i = 0; i < mixedRows && dCopy >= 1; ++i)
- {
- dCopy--;
- Console.WriteLine(new string('.', dCopy) + '*' + new string('-', dash) + '*' + new string('-', dash) + '*' + new string('.', dCopy));
- dash++;
- }
- int nCopy = n;
- Console.WriteLine(new string('*', width));
- Console.Write('*');
- for (int i = 0; i < n * 2; ++i) Console.Write("{0}{1}", '.', '*');
- Console.WriteLine();
- Console.WriteLine(new string('*', width));
- }
- }
Add Comment
Please, Sign In to add comment