Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class BatGoikoTower
- {
- static void Main()
- {
- int number = int.Parse(Console.ReadLine());
- int dots = number - 1;
- int middle = 0;
- int countForDash = 2;
- int countforIncreasingDashes = 2;
- for (int i = 1; i <= number; i++)
- {
- if (i == countForDash)
- {
- Console.WriteLine("{0}/{1}\\{0}", new string('.', dots), new string('-', middle));
- countForDash += countforIncreasingDashes;
- countforIncreasingDashes++;
- }
- else
- {
- Console.WriteLine("{0}/{1}\\{0}", new string('.', dots), new string('.', middle));
- }
- middle+=2;
- dots --;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement