Advertisement
AJMitev

Fox

Mar 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. using System;
  2.  
  3. class DrawingSomeFox
  4. {
  5. static void Main()
  6. {
  7. //Input
  8. int n = int.Parse(Console.ReadLine());
  9. int width = n * 2 + 3;
  10. //Logic
  11. for (int i = 1; i <=n; i++)
  12. {
  13. Console.WriteLine(new string('*',i)+"\\"+new string('-',width-2-i*2)+"/"+ new string('*', i));
  14. }//endOfTop
  15. for (int i = 0; i < n/3; i++)
  16. {
  17. Console.WriteLine("|"+new string('*',n/2+i)+"\\"+ new string('*', n-2*i)+"/"+ new string('*', n / 2+i)+"|");
  18. }
  19. for (int i = 1; i <= n; i++)
  20. {
  21. Console.WriteLine(new string('-', i) + "\\" + new string('*', width - 2 - i * 2) + "/" + new string('-', i));
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement