TZinovieva

Numbers Ending in 7

Oct 1st, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function numbersEndingIn7(){
  2.  
  3.     for (let i = 1; i <= 1000; i++){
  4.         if (i % 10 === 7){
  5.             console.log(i);
  6.         }
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment