Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- for (i = 1; i <= 100; i++) {
- document.write( i + ' ' );
- if(i % 3 == 0)
- document.write('Earth ');
- if(i % 5 == 0)
- document.write('Jupiter ');
- if(i % 9 == 0)
- document.write('Pluto ');
- document.write( '<br><br>' );
- }
- </script>
Add Comment
Please, Sign In to add comment