-
-
Save codecademydev/bc917287924b70e0e251bd3b05e4e19f to your computer and use it in GitHub Desktop.
Codecademy export
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
class FizzBuzz{ | |
public static void main(String[]args){ | |
for(int i=1; i<=100;i++){ | |
if (i % 15 == 0) { | |
System.out.println("fizzbuzz"); | |
}else if (i % 5 == 0) { | |
System.out.println("buzz"); | |
} else if (i % 3 == 0) { | |
System.out.println("fizz"); } | |
System.out.println(i); } | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment