Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 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 Dumbbel
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int n=int.Parse(Console.ReadLine());
  14. Console.WriteLine("{0}{1}{2}{1}{0}",new string('.',n/2),new string('&',n/2+1),new string('.',n));
  15. for (int i = 0; i < n/2-1; i++)
  16. {
  17. Console.WriteLine("{0}&{1}&{2}&{1}&{0}", new string('.', n / 2 - 1 - i), new string('*', n / 2 + i), new string('.', n));
  18. }
  19. Console.WriteLine("&{0}&{1}&{0}&",new string('*',(3*n-4-n)/2),new string('=',n));
  20. for (int i = n/2-2; i >=0 ; i--)
  21. {
  22. Console.WriteLine("{0}&{1}&{2}&{1}&{0}", new string('.', n / 2 - 1 - i), new string('*', n / 2 + i), new string('.', n));
  23. }
  24. Console.WriteLine("{0}{1}{2}{1}{0}", new string('.', n / 2), new string('&', n / 2 + 1), new string('.', n));
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement