Created
June 18, 2014 05:12
-
-
Save sh4869/53a4f51c9cbe30b9f518 to your computer and use it in GitHub Desktop.
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
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