Advertisement
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 Rocket
- {
- class Program
- {
- static void Main(string[] args)
- {
- int size = int.Parse(Console.ReadLine());
- int rightPart = ((size * 3) - 2) / 2;
- int leftPart = rightPart;
- //PRINTING THE TOP PART
- for (int i = 0; i < size; i++)
- {
- Console.Write(new string('.', leftPart - i));
- Console.Write("/");
- Console.Write(new string(' ', i * 2));
- Console.Write("\\");
- Console.WriteLine(new string('.', rightPart - i));
- }
- int halfSize = size / 2;
- //PRINTING THE STATIC PART AFTER THE TOP ONE
- Console.Write(new string('.', halfSize));
- Console.Write(new string('*', 2 * size));
- Console.WriteLine(new string('.', halfSize));
- int someRandomFormule = 2 * size - 2;
- //printing the body part
- for (int i = 0; i < size * 2; i++)
- {
- Console.Write(new string('.', halfSize));
- Console.Write('|');
- Console.Write(new string('\\', someRandomFormule));
- Console.Write('|');
- Console.WriteLine(new string('.', halfSize));
- }
- //PRINTING THE TAIL OF THE PART
- for (int i = 0; i < size / 2; i++)
- {
- Console.Write(new string('.', halfSize - i));
- Console.Write("/");
- Console.Write(new string('*', (3 * size) - (size + 2) + (2 * i)));
- Console.Write("\\");
- Console.WriteLine(new string('.', halfSize - i));
- //someRandomFormule += 2;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement