You are viewing a single comment's thread. Return to all comments →
My code in JavaScript using two loop
for (let i = n; i > 0; i--) { let out = ""; for (let j = 1; j <= n; j++) { if (j >= i) { out += "#"; } else { out += " " } } console.log(out) } }
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 →
My code in JavaScript using two loop