SHARE
TWEET

Untitled

a guest Jan 19th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function countNum(N) {
  2.     for(var i = 1; i < N; i++) {
  3.         if( i % 2 == 0 && i % 3 == 0 || i % 5 == 0)
  4.         console.log(i);
  5.     }
  6.   }
  7.  
  8. countNum(15);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top