Created
April 24, 2016 01:19
-
-
Save vinipsmaker/9c6ab3c39a0e2c65cc8f74dd32606886 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
fn main() { | |
for i in 1..100 { | |
match (i % 3, i % 5) { | |
(0, 0) => println!("FizzBuzz"), | |
(0, _) => println!("Fizz"), | |
(_, 0) => println!("Buzz"), | |
_ => println!("{}", i) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice :-) 👍