Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- public static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- for(int i = 0; i < n / 2; i++)
- {
- Console.Write(new String('.', n / 2 - 1 - i));
- Console.Write("/");
- Console.Write(new String(' ', 2*i));
- Console.Write("\\");
- Console.WriteLine(new String('.', n / 2 - 1 - i));
- }
- for (int i = n / 2 - 1; i > 0; i--)
- {
- Console.Write(new String('.', n / 2 - 1 - i));
- Console.Write("\\");
- Console.Write(new String(' ', 2*i));
- Console.Write("/");
- Console.WriteLine(new String('.', n / 2 - 1 - i));
- }
- }
- }
Add Comment
Please, Sign In to add comment