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 Fox
- {
- class Fox
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int middle = (int)(n / 3);
- var star = new string('*', (n - 2) / 2 + 1);
- if (n % 2 == 0)
- {
- }
- else
- {
- for (int i = 1; i <= n; i++)
- {
- Console.WriteLine(new string('*', i) + @"\" + new string('-', 2*n + 1 - i*2) + "/" + new string('*', i));
- }
- for (int i = 0; i < middle*2; i+=2)
- {
- Console.WriteLine("|" + star + @"\" + new string('*', n-i) + "/" + star + "|");
- star += "*";
- }
- for (int i = 1; i <= n; i++)
- {
- Console.WriteLine(new string('-', i) + @"\" + new string('*', 2*n+1-i*2) + "/" + new string('-', i));
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment