Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. int n = int.Parse(Console.ReadLine());
  8.  
  9. for (int i = 0; i < n-2; i++)
  10. {
  11. if (i % 2 == 0)
  12. {
  13. Console.WriteLine(new string('*', n - 2) + "\\ /" + new string('*', n - 2));
  14. }
  15. else
  16. {
  17. Console.WriteLine(new string('-', n - 2) + "\\ /" + new string('-', n - 2));
  18. }
  19. }
  20.  
  21. Console.WriteLine(new string(' ',n-1) + "@" + new string(' ', n - 1));
  22.  
  23. for (int i = 0; i < n - 2; i++)
  24. {
  25. if (i % 2 == 0)
  26. {
  27. Console.WriteLine(new string('*', n - 2) + "/ \\" + new string('*', n - 2));
  28. }
  29. else
  30. {
  31. Console.WriteLine(new string('-', n - 2) + "/ \\" + new string('-', n - 2));
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement