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 Axe
- {
- class Program
- {
- static void Main(string[] args)
- {
- var num = int.Parse(Console.ReadLine());
- var width = 3 * num + 1;
- var hight = 4 * num + 1;
- var waves = num - 2;
- Console.Write('+');
- Console.Write(new string('~', waves));
- Console.Write('+');
- Console.WriteLine(new string('.', width - waves - 2));
- var points = width - waves - 3;
- for (int row = 0; row < 2 * num + 1; row++)
- {
- Console.Write('|');
- Console.Write(new string('.', row));
- Console.Write('\\');
- Console.Write(new string('~', num - 2));
- Console.Write('\\');
- Console.WriteLine(new string('.', points));
- points--;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement