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 lineEquals = 3 * n + 5;
- int monkey = 2 * n + 4;
- var spaces = 0;
- for (int i = 0; i < n; i++)
- {
- Console.Write(new string(' ', n));
- Console.WriteLine("~ ~ ~");
- }
- Console.WriteLine(new string('=', lineEquals));
- for (int j = 0; j < n / 2 - 1; j++)
- {
- Console.WriteLine("|" + new string('~', n * 2 + 4) + "|" + new string(' ', n-1) + "|");
- }
- Console.WriteLine("|" + new string('~', n) + "JAVA" + new string('~', n) + "|" + new string(' ', n - 1) + "|");
- for (int j = 0; j < n / 4; j++)
- {
- Console.WriteLine("|" + new string('~', n * 2 + 4) + "|" + new string(' ', n - 1) + "|");
- }
- Console.WriteLine(new string('=', lineEquals));
- for (int r = 0; r < n; r++)
- {
- Console.Write(new string(' ', spaces++));
- Console.WriteLine('\\' + new string('@', monkey) + '/' + new string(' ', spaces));
- monkey-=2;
- }
- Console.WriteLine(new string('=', lineEquals - n + 1));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment