Advertisement
Didart

Numbers Ending in 7

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