You are viewing a single comment's thread. Return to all comments →
I will simplify it like this:-
for(int i=1;i <= N ; i++) Console.WriteLine(new String('#',i).PadLeft(N));
Staircase
You are viewing a single comment's thread. Return to all comments →
I will simplify it like this:-
for(int i=1;i <= N ; i++) Console.WriteLine(new String('#',i).PadLeft(N));