Guest User

Untitled

a guest
Mar 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. fn main() {
  2. for i in 1..101 {
  3. if i % 15 == 0 { println!("FizzBuzz") }
  4. else if i % 3 == 0 { println!("Fizz") }
  5. else if i % 5 == 0 { println!("Buzz") }
  6. else { println!("{}", i) }
  7. }
  8. }
Add Comment
Please, Sign In to add comment