Spocoman

03. Numbers 1...N with Step 3

Dec 23rd, 2021 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function num(input) {
  2.   for (let i = 1; i <= Number(input[0]); i += 3) {
  3.       console.log(i);
  4.   }
  5. }
  6.  
Add Comment
Please, Sign In to add comment