Advertisement
Spocoman

04. Triangle of Dollars

Jan 2nd, 2022
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(input) {
  2.     for (let i = 1; i <= input; i++){
  3.         console.log('$ '.repeat(i));
  4.     }
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement