Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class TringleJustForFun
- {
- static void Main()
- {
- Console.OutputEncoding = Encoding.UTF8;
- int input = int.Parse(Console.ReadLine());
- int temp = input;
- int count = 0;
- Console.WindowWidth = (input*2)+1;
- Console.WindowHeight = input + 4;
- string c = "©";
- string boxUp = new string('-', (temp * 2) + 1);
- Console.WriteLine(boxUp);
- string firstSpaces = new string('/', input - 1);
- Console.WriteLine("|" + firstSpaces + c + firstSpaces + "|");
- /**********************************************/
- for (count = 0; count < (input - 2); count++)
- {
- string nextSpaces = new string('/', (input - (count + 2)));
- string midSpaces = new string('\\', (count * 2) + 1);
- Console.WriteLine("|" + nextSpaces + c + midSpaces + c + nextSpaces + "|");
- }
- /**********************************************/
- Console.Write("|");
- for (count = 0; count < (temp * 2) - 1; count++)
- {
- if (count % 2 == 0)
- {
- Console.Write("©");
- }
- else
- {
- Console.Write(" ");
- }
- }
- Console.Write("|\n");
- string boxDown = new string('-', (temp * 2) + 1);
- Console.WriteLine(boxDown);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement