1. |
fizzBuzz()
03:12
|
|||
for (i = 0; i <= n; i++) {
⠀⠀if (i % 3 == 0 && i % 5 == 0) {
⠀⠀⠀⠀System.out.println("FIZZBUZZ");
⠀⠀} else if (i % 3 == 0) {
⠀⠀⠀⠀System.out.println("FIZZ");
⠀⠀} else if (i % 5 == 0) {
⠀⠀⠀⠀System.out.println("BUZZ");
⠀⠀} else {
⠀⠀⠀⠀System.out.println(i);
⠀⠀}
}
/* i think this music tastes fizzy, don't you think?
and it reminds me of
all of the times we were sitting by the sea
drinking soda pop */
/* my heart electric and buzzing with the beat
feeling your lips on mine
all of the times we were dancing underneath
rainbow neon skies */
|
cyy♡
LIFE-AFFIRMING HAPPY HARDCORE
909 WORLDWIDE
<< formerly iku >>
Streaming and Download help
If you like fizzBuzz(), you may also like:
Bandcamp Daily your guide to the world of Bandcamp