Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SublimeLogo
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int spaces = 2 * n - 2;
- int stars = 2;
- for (int row = 0; row < n; row++)
- {
- Console.Write(new string(' ', spaces));
- Console.Write(new string('*', stars));
- spaces -= 2;
- stars += 2;
- Console.WriteLine();
- }
- spaces = 2;
- stars = 2 * n - 2;
- for (int row = 0; row < 2; row++)
- {
- Console.Write(new string('*', stars));
- Console.Write(new string(' ', spaces));
- spaces += 2;
- stars -= 2;
- Console.WriteLine();
- }
- spaces = 2;
- stars = 2 * n - 2;
- for (int row = 0; row < 2; row++)
- {
- Console.Write(new string('*', stars));
- Console.Write(new string(' ', spaces));
- if (spaces > 0 && stars > 0)
- {
- spaces -= 2;
- stars += 2;
- }
- Console.WriteLine();
- }
- spaces = 2;
- stars = 2 * n - 2;
- for (int row = 0; row < 2; row++)
- {
- Console.Write(new string(' ', spaces));
- Console.Write(new string('*', stars));
- spaces += 2;
- stars -= 2;
- Console.WriteLine();
- }
- spaces = 2;
- stars = 2 * n - 2;
- for (int row = 0; row < 2; row++)
- {
- Console.Write(new string(' ', spaces));
- Console.Write(new string('*', stars));
- if (spaces > 0 && stars > 0)
- {
- spaces -= 2;
- stars += 2;
- }
- Console.WriteLine();
- }
- spaces = 2;
- stars = 2 * n - 2;
- for (int row = 0; row < n; row++)
- {
- Console.Write(new string('*', stars));
- Console.Write(new string(' ', spaces));
- spaces += 2;
- stars -= 2;
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement