Advertisement
plamen27

Draw Fort Fixed

Jul 7th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 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. namespace ConsoleApplication2
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. //////////////// int myLines = 0;/////////////////////////////////////
  14. int test = 0;
  15. var n = int.Parse(Console.ReadLine());
  16. Console.Write("/");
  17. for (int star = 0; star < n / 2; star++)
  18. Console.Write("^");
  19. Console.Write("\\");
  20. /////////////////////////////////////////////////////////////////////
  21. Console.Write(new string('_', (2 * n - (2 * (n / 2) + 4))));
  22. /////////////////////////////////////////////////////////////////////
  23. Console.Write("/");
  24. for (int star = 0; star < n / 2; star++)
  25. Console.Write("^");
  26. Console.Write("\\");
  27. Console.WriteLine();
  28. if (n > 4)
  29. test = n / 2;
  30.  
  31.  
  32. for (int castle = 0; castle < n - 3; castle++)
  33. {
  34. Console.Write("|");
  35. //////////////////////////////////////////////////////////////////////////////////
  36. Console.Write(new string(' ', (2 * n - 2)));
  37. //////////////////////////////////////////////////////////////////////////////////
  38. Console.Write("|");
  39. Console.WriteLine();
  40.  
  41. }
  42.  
  43.  
  44. for (int lastRow = 0; lastRow < 1; lastRow++)
  45. {
  46. Console.Write("|");
  47. for (int lines = 0; lines < (n / 2) + 1; lines++)
  48. /////////////////////////////////////////////////////////////////////////////////
  49. Console.Write(" ");
  50. Console.Write(new string('_', (2 * n - (2 * (n / 2) + 4))));
  51. /////////////////////////////////////////////////////////////////////////////////
  52. for (int lines = 0; lines < (n / 2) + 1; lines++)
  53. Console.Write(" ");
  54.  
  55. Console.Write("|");
  56. Console.WriteLine();
  57. }
  58. Console.Write("\\");
  59. Console.Write(new string('_', n / 2));
  60. Console.Write("/");
  61. ////////////////////////////////////////////////////////////////////////////////////
  62. Console.Write(new string(' ', (2 * n - (2 * (n / 2) + 4))));
  63. ////////////////////////////////////////////////////////////////////////////////////
  64. Console.Write("\\");
  65. Console.Write(new string('_', n / 2));
  66. Console.Write("/");
  67. Console.WriteLine();
  68. }
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement