We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
using System;
class Solution
{
static void Main(String[] args)
{
int N = int.Parse(Console.ReadLine());
for (int i = 0; i < N; i++)
Console.WriteLine(new String('#', i + 1).PadLeft(N, ' '));
}
}
Staircase
You are viewing a single comment's thread. Return to all comments →
Pretty easy with C#: