Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp27
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- string dots = new string('.', (3 * n) / 2);
- string dots1 = new string('.', ((3 * n) / 2)-1);
- Console.WriteLine("{0}x{0}", dots);
- Console.WriteLine("{0}/x\\{0}", dots1);
- Console.WriteLine("{0}x|x{0}", dots1);
- int dotsCicle = n / 2;
- int Xcicle = n;
- for (int i = 0; i < (n/2)+1; i++)
- {
- Console.WriteLine("{0}{1}|{1}{0}", new string('.', dotsCicle), new string('x', Xcicle));
- dotsCicle--;
- Xcicle++;
- }
- dotsCicle = 1;
- Xcicle = ((3 * n))/2 - dotsCicle;
- for (int i = n/2; i >=1; i--)
- {
- Console.WriteLine("{0}{1}|{1}{0}", new string('.', dotsCicle), new string('x', Xcicle));
- dotsCicle++;
- Xcicle--;
- }
- Console.WriteLine("{0}/x\\{0}", dots1);
- Console.WriteLine("{0}\\x/{0}", dots1);
- dotsCicle = n / 2;
- Xcicle = n;
- for (int i = 0; i < (n / 2) + 1; i++)
- {
- Console.WriteLine("{0}{1}|{1}{0}", new string('.', dotsCicle), new string('x', Xcicle));
- dotsCicle--;
- Xcicle++;
- }
- dotsCicle = 1;
- Xcicle = ((3 * n)) / 2 - dotsCicle;
- for (int i = n / 2; i >= 1; i--)
- {
- Console.WriteLine("{0}{1}|{1}{0}", new string('.', dotsCicle), new string('x', Xcicle));
- dotsCicle++;
- Xcicle--;
- }
- Console.WriteLine("{0}x|x{0}", dots1);
- Console.WriteLine("{0}\\x/{0}", dots1);
- Console.WriteLine("{0}x{0}", dots);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement