Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int n = int.Parse(Console.ReadLine());
- for (int a = 1; a <= n; a++)
- {
- if (a != 1)
- {
- Console.WriteLine("");
- }
- for(int d = 0; d < n-a; d++)
- {
- Console.Write(" ");
- }
- for(int b = 1; b < a; b++)
- {
- Console.Write("*");
- }
- Console.Write("I");
- for (int c = 1; c < a; c++)
- {
- Console.Write("*");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement