Advertisement
Guest User

Untitled

a guest
Jun 11th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7.  
  8. class Butterfly
  9. {
  10. static void Main(string[] args)
  11. {
  12. int n = int.Parse(Console.ReadLine());
  13. for (int row = 0; row < n - 2; row++)
  14. {
  15. if (row % 2 == 0)
  16. {
  17. Console.WriteLine(new string('*', n - 2) + '\\' + ' ' + '/' + new string('*', n - 2));
  18. }
  19. else
  20. Console.WriteLine(new string('-', n - 2) + '\\' + ' ' + '/' + new string('-', n - 2));
  21. }
  22. Console.WriteLine(new string(' ', n - 1) + '@');
  23. for (int row = 0; row < n - 2; row++)
  24. {
  25. if (row % 2 == 0)
  26. {
  27. Console.WriteLine(new string('*', n - 2) + '/' + ' ' + '\\' + new string('*', n - 2));
  28. }
  29. else
  30. Console.WriteLine(new string('-', n - 2) + '/' + ' ' + '\\' + new string('-', n - 2));
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement