ProdanTenev

Divisible By 3

Mar 18th, 2022
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.15 KB | None | 0 0
  1. function divisibleBy3() {
  2.     for (let num = 1; num <= 100; num++) {
  3.         if (num % 3 === 0) {
  4.             console.log(num);
  5.         }
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment