Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/FizzBuzz/Processing/fizzbuzz-1.processing
Normal file
19
Task/FizzBuzz/Processing/fizzbuzz-1.processing
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
for (int i = 0; i < width; i++) {
|
||||
if (i % 3 == 0 && i % 5 == 0) {
|
||||
stroke(255, 255, 0);
|
||||
println("FizzBuzz!");
|
||||
}
|
||||
else if (i % 5 == 0) {
|
||||
stroke(0, 255, 0);
|
||||
println("Buzz");
|
||||
}
|
||||
else if (i % 3 == 0) {
|
||||
stroke(255, 0, 0);
|
||||
println("Fizz");
|
||||
}
|
||||
else {
|
||||
stroke(0, 0, 255);
|
||||
println(i);
|
||||
}
|
||||
line(i, 0, i, height);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue