use std::io::stdin; fn get_line() -> String { let mut line = String::new(); stdin().read_line(&mut line).ok(); line } fn main() { let line = get_line(); let integer: i32 = line.trim().parse().unwrap(); for i in 1..integer + 1 { if i % 3 == 0 && i % 5 == 0 { println!("FizzBuzz"); continue; } if i % 3 == 0 { println!("Fizz"); continue; } if i % 5 == 0 { println!("Buzz"); continue; } println!("{}", i); } }