Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. for (var nums = 100; nums <= 200; nums++) {
  2. if (nums % 3 === 0) {
  3. console.log ("Loopy");
  4. } else if (nums % 4 === 0) {
  5. console.log("Lighthouse");
  6. } else if (nums % 3 === 0 && nums % 4 === 0) {
  7. console.log ("LoopyLighthouse");
  8. } else {
  9. console.log(nums);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement