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