Created
October 23, 2013 22:37
-
-
Save anonymous/7128082 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lnguage="JavaScript"> | |
p = ""; | |
for(i=1; i<101; i++) | |
{ | |
p = ""; | |
if(i%3==0) | |
{ | |
p = "fizz"; | |
} | |
if(i%5==0) | |
{ | |
p += "buzz"; | |
} | |
if(p=="") | |
{ | |
p = i; | |
} | |
document.write(p + '<br/>'); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment