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;
- class Strawberry
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- Console.Write(@"\");
- Console.Write(new string('-', n));
- Console.Write(@"|");
- Console.Write(new string('-', n));
- Console.WriteLine(@"/");
- int left = 2;
- int right = n - 2;
- for (int i = 0; i < n / 3; i++)
- {
- Console.WriteLine("{0}{1}{2}{3}{4}{5}{6}", new string('-', left), @"\", new string('-', right), @"|", new string('-', right), @"/", new string('-', left));
- left += 2;
- right = n - left;
- }
- Console.WriteLine("{0}#.#{0}", new string('-', n));
- int dashes = n - 2;
- int dots = 5; //+4
- for (int i = 0; i < n / 2; i++)
- {
- Console.Write("{0}#{1}#{0}", new string('-', dashes), new string('.', dots));
- dots += 4;
- dashes -= 2;
- Console.WriteLine();
- }
- dots -= 2;
- Console.WriteLine("#{0}#", new string('.', dots));
- dots -= 2;
- dashes = 1;
- for (int i = 0; i < n; i++)
- {
- Console.Write("{0}#{1}#{0}", new string('-', dashes), new string('.', dots));
- dots -= 2;
- dashes++;
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment