NadyaMisheva

Untitled

Nov 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. {
  2. public static void Main()
  3. {
  4. int n = int.Parse(Console.ReadLine());
  5. for(int i = 0; i < n / 2; i++)
  6. {
  7. Console.Write(new String('.', n / 2 - 1 - i));
  8. Console.Write("/");
  9. Console.Write(new String(' ', 2*i));
  10. Console.Write("\\");
  11. Console.WriteLine(new String('.', n / 2 - 1 - i));
  12. }
  13. for (int i = n / 2 - 1; i > 0; i--)
  14. {
  15. Console.Write(new String('.', n / 2 - 1 - i));
  16. Console.Write("\\");
  17. Console.Write(new String(' ', 2*i));
  18. Console.Write("/");
  19. Console.WriteLine(new String('.', n / 2 - 1 - i));
  20. }
  21.  
  22. }
  23. }
Add Comment
Please, Sign In to add comment