Staircase detail
This is a staircase of size
# ## ### #### Its base and height are both equal to . It is drawn using # symbols and spaces. The last line is not preceded by any spaces.
Write a program that prints a staircase of size .
public void staircase(int n) { for (int i = 0; i < n; i++) { string space = new(' ', n - i - 1); string hastag = new('#', i + 1); string result = space + hastag; Console.WriteLine(result); } } I'm a full stack developer and IT enthusiast. Skilled in Programming, Teamwork, Software Development, and Project Management. Strong information technology professional with a Bachelor of Technology - BTech focused in Information Technology from Institut Teknologi Telkom Surabaya.