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 FallenInLoveLiveDemo
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- Console.BackgroundColor = ConsoleColor.Black;
- Console.Clear();
- int height = 3 * n + 1;
- int width = 4 * n + 6;
- int magicVariable = 0;
- for(int row = 0; row < n; row++)
- {
- string line = "#" + new string('~' , row) + "#" + new string('.' , ( 2 * n ) - magicVariable) + "#" +
- new string('.' , magicVariable) + "#" + new string('.' , ( 2 * n ) - magicVariable) + "#" +
- new string('~' , row) + "#";
- magicVariable += 2;
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine(line);
- }
- int outerDots = 0;
- for(int row = 0; row <= n; row++)
- {
- string line = "." + new String('.' , outerDots) + "#" + new String('~' , n - row) + "#" + new string('.' , ( 2 * n ) - outerDots) + "#" + new String('~' , n - row) + "#" + new String('.' , outerDots) + ".";
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine(line);
- outerDots += 2;
- }
- for(int row = 0; row < n; row++)
- {
- //string line = StringCreator(".", (width - 2) / 2) + "##" + StringCreator(".", (width - 2) / 2);
- string line = new string('.' , ( width - 2 ) / 2) + "##" + new string('.' , ( width - 2 ) / 2);
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine(line);
- }
- }
- /* Uncomment when using !!!*/
- //public static string StringCreator(String text, int repeat)
- //{
- // StringBuilder sb = new StringBuilder();
- // for (int i = 0; i < repeat; i++)
- // {
- // sb.Append(text);
- // }
- // return sb.ToString();
- //}
- }
- }
Add Comment
Please, Sign In to add comment