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 Java
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int firstSpaces = n;
- int seconSpaces = 2 * n;
- int oneSpace = 1;
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine("{0}{1}{2}{1}{2}{1}{2}{3}",new string(' ',firstSpaces),new string('~',1),new string(' ',oneSpace),new string(' ',seconSpaces));
- }
- Console.WriteLine("{0}",new string('=',3*n+5));
- oneSpace = n - 1;
- for (int i = 1; i <= n-2; i++)
- {
- if (i == n / 2)
- {
- Console.Write("{0}{1}", new string('|', 1), new string('~', n));
- Console.Write("JAVA");
- Console.WriteLine("{0}{1}{2}{1}", new string('~', n), new string('|', 1), new string(' ', oneSpace));
- }
- else
- {
- Console.WriteLine("{0}{1}{0}{2}{0}", new string('|', 1), new string('~', 2*n+4), new string(' ', oneSpace));
- }
- }
- Console.WriteLine("{0}", new string('=', 3 * n + 5));
- firstSpaces = 0;
- seconSpaces = n;
- int monkeyA = 2 * n + 4;
- for (int i = 0; i < n; i++)
- {
- Console.WriteLine("{0}{1}{2}{3}{4}",new string (' ',firstSpaces),new string('\\',1),new string('@',monkeyA),new string('/',1),new string(' ',seconSpaces));
- firstSpaces++;
- seconSpaces++;
- monkeyA -= 2;
- }
- seconSpaces=n;
- Console.WriteLine("{0}{1}{0}",new string('=',seconSpaces),new string('=',6));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment