Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class FireInTheMatrix
- {
- static void Main()
- {
- //top row
- int width = int.Parse(Console.ReadLine());
- int topDots = (width / 2) - 1;
- Console.Write(new string('.', topDots));
- Console.Write(new string('#', 2));
- Console.WriteLine(new string('.', topDots));
- for (int i = 0; i < (width / 2) - 2; i++)
- {
- topDots--;
- Console.Write(new string('.', topDots));
- Console.Write('#');
- Console.Write(new string('.', i + 1));
- Console.Write(new string('.', i + 1));
- Console.Write('#');
- Console.WriteLine(new string('.', topDots));
- }
- Console.Write('#');
- Console.Write(new string('.', width - 2));
- Console.WriteLine('#');
- Console.Write('#');
- Console.Write(new string('.', width - 2));
- Console.WriteLine('#');
- int bottomDots = 0;
- int middleDots = (width / 2) - 1;
- for (int j = 0; j < ((width / 2) - 2) / 2; j++)
- {
- bottomDots++;
- middleDots--;
- Console.Write(new string('.', bottomDots));
- Console.Write('#');
- Console.Write(new string('.', middleDots));
- Console.Write(new string('.', middleDots));
- Console.Write('#');
- Console.WriteLine(new string('.', bottomDots));
- }
- Console.WriteLine(new string('-',width));
- Console.Write(new string('\\', width / 2));
- Console.WriteLine(new string('/',width/2));
- int bottomBottomDots = 0;
- int dashes = width / 2 ;
- for (int k = 0; k < width/2 - 1; k++)
- {
- bottomBottomDots++;
- dashes--;
- Console.Write(new string('.', bottomBottomDots));
- Console.Write(new string('\\', dashes));
- Console.Write(new string('/', dashes));
- Console.WriteLine(new string('.', bottomBottomDots));
- }
- }
- }
- // 12
- // .....##.....
- // ....#..#....
- // ...#....#...
- // ..#......#..
- // .#........#.
- // #..........#
- // #..........#
- // .#........#.
- // ..#......#..
- // ------------
- // \\\\\\//////
- // .\\\\\/////.
- // ..\\\\////..
- // ...\\\///...
- // ....\\//....
- // .....\/.....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement