Skip to content

Instantly share code, notes, and snippets.

@tomoyk
Created May 9, 2017 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyk/625dd4cb5b1ed5396d4880edb1de137d to your computer and use it in GitHub Desktop.
Save tomoyk/625dd4cb5b1ed5396d4880edb1de137d to your computer and use it in GitHub Desktop.
processingで書いたFizzBuzz
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