Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Four
- {
- static void Main()
- {
- int height = int.Parse(Console.ReadLine());
- for (int i = 1; i <= height; i++)
- {
- int dotsBefore = height - i;
- int thingsInside = 2 * height - 2 - (dotsBefore * 2);
- if (i == 2 || i == 4 || i == 7 || i == 11 || i == 16 || i == 22 || i == 29 || i == 37)
- {
- Console.WriteLine(new string('.', dotsBefore) + "/" + new string('-', thingsInside) + "\\" + new string('.', dotsBefore));
- }
- else
- {
- Console.WriteLine(new string('.', dotsBefore) + "/" + new string('.', thingsInside) + "\\" + new string('.', dotsBefore));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement