Created
April 14, 2012 18:36
-
-
Save ktibb/2386780 to your computer and use it in GitHub Desktop.
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
int i=1; | |
int z=0; | |
void setup() { | |
} | |
void draw() { | |
for (i=1; i<=100; i++) { | |
if (i%3==z && i%5==z) { | |
println ("fizzbuzz"); | |
} | |
else if (i%3==z) { | |
println ("fizz"); | |
} | |
else if (i%5==z) { | |
println ("buzz"); | |
} | |
else { | |
println (i); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment