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;
- using System.Globalization;
- namespace numsTo100inText
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int hash = (4 * n) + 1;
- int dots = 1;
- int spaces = 1;
- int leftHash = n * 2 - 1;
- int seconDots = n + 1;
- int secontHash = n * 2 - 1;
- Console.WriteLine(new string('#',hash));
- hash -= 2;
- for (int i = 1; i <= n/2; i++)
- {
- Console.WriteLine(new string('.', dots) + new string('#', leftHash) + new string(' ', spaces) + new string('#', leftHash) + new string('.', dots));
- dots++;
- leftHash -= 2;
- spaces += 2;
- }
- Console.WriteLine(new string('.', dots) + new string('#', leftHash) + new string(' ', n / 2 - 1) + "(@)" + new string(' ', n / 2 - 1) + new string('#', leftHash) + new string('.', dots));
- dots++;
- leftHash -= 2;
- spaces += 2;
- for (int i = n/2; i <=n-2; i++)
- {
- Console.WriteLine(new string('.', dots) + new string('#', leftHash) + new string(' ', spaces) + new string('#', leftHash) + new string('.', dots));
- dots++;
- leftHash -= 2;
- spaces += 2;
- }
- Console.WriteLine(new string('.', seconDots) + new string('#', secontHash) + new string('.', seconDots));
- for (int i = 2; i <=n; i++)
- {
- seconDots++;
- secontHash -= 2;
- Console.WriteLine(new string('.', seconDots) + new string('#', secontHash) + new string('.', seconDots));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement