You are viewing a single comment's thread. Return to all comments →
Javascript solution
function staircase(n) { let str = "#"; for(let i=n;i>0;i--) { console.log(str.padStart(i,' ').padEnd(n,'#')) } }
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Javascript solution