Advertisement
lina94

Bat Goiko's Tower

Jun 25th, 2013
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. class Four
  4. {
  5.     static void Main()
  6.     {
  7.         int height = int.Parse(Console.ReadLine());
  8.  
  9.         for (int i = 1; i <= height; i++)
  10.         {
  11.             int dotsBefore = height - i;
  12.             int thingsInside = 2 * height - 2 - (dotsBefore * 2);
  13.  
  14.             if (i == 2 || i == 4 || i == 7 || i == 11 || i == 16 || i == 22 || i == 29 || i == 37)
  15.             {
  16.                 Console.WriteLine(new string('.', dotsBefore) + "/" + new string('-', thingsInside) + "\\" + new string('.', dotsBefore));
  17.             }
  18.             else
  19.             {
  20.                 Console.WriteLine(new string('.', dotsBefore) + "/" + new string('.', thingsInside) + "\\" + new string('.', dotsBefore));
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement