ProdanTenev

Numbers Ending in 7

Feb 25th, 2022
1,471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.13 KB | None | 0 0
  1. function numsToSeven() {
  2.     for (let i=7; i<=997;i++) {
  3.         if (i % 10 === 7) {
  4.             console.log(i);
  5.         }
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment