Skip to content

Instantly share code, notes, and snippets.

@sh4869
Created June 18, 2014 05:12
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 sh4869/53a4f51c9cbe30b9f518 to your computer and use it in GitHub Desktop.
Save sh4869/53a4f51c9cbe30b9f518 to your computer and use it in GitHub Desktop.
void main(){
int n = 0;
while(n < 100){
if(n % 15 == 0){
print("FizzBUzz");
}else if(n % 5 == 0){
print("Buzz");
}else if(n % 3 == 0){
print("Fizz");
}else{
print("${n}");
}
n += 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment