Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t n = int.Parse(Console.ReadLine());
- Console.WriteLine("{0}{1}{0}",
- new string('.', n + 1),
- new string('_', 2 * n + 1));
- string topRowsLabel = "{0}//{1}\\\\{0}";
- int midSymCount = 2 * n - 1;
- for (int i = 0; i < n; i++)
- {
- string row = string.Format(topRowsLabel,
- new string('.', n - i),
- new string('_', midSymCount));
- midSymCount += 2;
- Console.WriteLine(row);
- }
- Console.WriteLine("//{0}STOP!{0}\\\\",
- new string('_', (midSymCount - 5) / 2));
- string botRowsLabel = "{0}\\\\{1}//{0}";
- for (int i = 0; i < n; i++)
- {
- string row = string.Format(botRowsLabel,
- new string('.', i),
- new string('_', midSymCount));
- midSymCount -= 2;
- Console.WriteLine(row);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement