Created
May 9, 2017 10:02
-
-
Save tomoyk/625dd4cb5b1ed5396d4880edb1de137d to your computer and use it in GitHub Desktop.
processingで書いたFizzBuzz
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
void draw(){ | |
for(int i=1;i<+100;i++){ | |
if(i%15==0) | |
println("FizzBuzz"); | |
else if(i%5==0) | |
println("Buzz"); | |
else if(i%3==0) | |
println("Fizz"); | |
else | |
println(i); | |
} | |
noLoop(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment