Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- public static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int space = n;
- int star = 0;
- for (int i = 0; i < n+1; i++)
- {
- Console.Write(new string(' ',space));
- Console.Write(new string('*',star));
- Console.Write(" | ");
- Console.Write(new string('*', star));
- Console.WriteLine();
- space--;
- star++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement