Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int stars = 1;
- int dashes = 2 * n - 1;
- for (int i = 0; i < n; i++)
- {
- Console.Write(new string('*', stars));
- Console.Write('\\');
- Console.Write(new string('-', dashes - 2 * i));
- Console.Write('/');
- Console.WriteLine(new string('*', stars));
- stars++;
- }
- int stars1 = n / 2;
- int midstars = n;
- for (int j = 0; j < n / 3; j++)
- {
- Console.Write('|');
- Console.Write(new string('*', stars1));
- Console.Write('\\');
- Console.Write(new string('*', midstars - 2 * j));
- Console.Write('/');
- Console.Write(new string('*', stars1));
- Console.WriteLine('|');
- stars1++;
- }
- int dashes1 = 1;
- dashes = 2 * n - 1;
- for (int k = 0; k < n; k++)
- {
- Console.Write(new string('-', dashes1));
- Console.Write('\\');
- Console.Write(new string('*', dashes-2 * k));
- Console.Write('/');
- Console.WriteLine(new string('-', dashes1));
- dashes1 ++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement