Advertisement
NeMM

Untitled

Jul 15th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace CupJava
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int a = int.Parse(Console.ReadLine());
  14.             for (int i = 0; i < a; i++)
  15.             {
  16.                 Console.Write(new string(' ',a));
  17.                 Console.Write(new string('~', 1));
  18.                 Console.Write(new string(' ', 1));
  19.                 Console.Write(new string('~', 1));
  20.                 Console.Write(new string(' ', 1));
  21.                 Console.Write(new string('~', 1));
  22.                 Console.WriteLine(new string(' ', a+1));
  23.                
  24.  
  25.             }
  26.             //Console.WriteLine((a/4));
  27.             Console.Write(new string('=', a * 3 + 5));
  28.             Console.WriteLine(" ");
  29.             for (int i = 0; i < a / 2 - 1; i++)
  30.             {
  31.                 Console.WriteLine("|{0}|{1}|", new string('~', a*3 -(a/2- (a % 2))),new string(' ',a-1));
  32.             }
  33.             Console.WriteLine("|{0}JAVA{0}|{1}|",new string('~',a),new string(' ',a-1));
  34.             for (int i = 0; i < a / 4; i++)
  35.             {
  36.                 Console.WriteLine("|{0}|{1}|", new string('~', a * 3 - (a / 2 - (a % 2))), new string(' ', a - 1));
  37.             }
  38.             Console.Write(new string('=', a * 3 + 5));
  39.             Console.WriteLine(" ");
  40.             for (int i = 0; i < 1; i++)
  41.             {
  42.                 for (int n = 0; n < a; n++)
  43.                 {
  44.                    
  45.                     Console.WriteLine("{0}\\{1}/{2}",new string(' ',n),new string('@',((a*2)+4)-(n*2)),new string(' ',a+n));
  46.                    
  47.                 }
  48.             }
  49.             Console.WriteLine("{0}",new string('=',a*2+6));
  50.         }
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement