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 SoftUniLogo
- {
- class Program
- {
- static void Main(string[] args)
- {
- int size = int.Parse(Console.ReadLine());
- int height = 4 * size - 2;
- int width = 12 * size - 5;
- int dots = width / 2;
- int hashtag = 1;
- for (int i = 1; i <= height / 2; i++)
- {
- Console.WriteLine("{0}{1}{0}", new string('.', dots), new string('#', hashtag));
- dots -= 3;
- hashtag += 6;
- }
- Console.WriteLine(new string('#', width));
- int leftDots = 2;
- int rightDots = 3;
- int btwHashtags = width - 6;
- for (int i = 1; i <= height / 4 - 1; i++)
- {
- Console.WriteLine("|{0}{1}{2}", new string('.', leftDots), new string('#', btwHashtags), new string('.', rightDots));
- leftDots += 3;
- btwHashtags -= 6;
- rightDots += 3;
- }
- for (int i = 1; i <= size; i++)
- {
- if (i == size)
- {
- Console.WriteLine("@{0}{1}{2}", new string('.', width / 4 - 2), new string('#', width / 2 + 4), new string('.', width / 4 - 1));
- break;
- }
- Console.WriteLine("|{0}{1}{2}",new string('.',width / 4 - 2),new string('#',width / 2 + 4),new string('.',width / 4 - 1));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement