Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- </head>
- <body>
- <script type="text/javascript">
- for (i=1; i <= 100 ; i++) {
- if ((i % 3 == 0) && (i % 5 == 0))
- {
- console.log("FozzBzazz </br>");
- }
- else if(i % 3 == 0)
- {
- console.log("Fozz </br>");
- }
- else if (i % 5 == 0)
- {
- console.log("Bzazz </br>");
- }
- else
- {
- console.log(i);
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement