Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (var nums = 100; nums <= 200; nums++) {
- if (nums % 3 === 0) {
- console.log ("Loopy");
- } else if (nums % 4 === 0) {
- console.log("Lighthouse");
- } else if (nums % 3 === 0 && nums % 4 === 0) {
- console.log ("LoopyLighthouse");
- } else {
- console.log(nums);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement