all stats

Destro's stats

guessed the most

namecorrect guessesgames togetherratio

were guessed the most by

namecorrect guessesgames togetherratio

entries

round #34

submitted at
0 likes

guesses
comments 0

post a comment


fizzbuzz.rs ASCII text, with CRLF line terminators
1
2
3
4
5
fn main() {
    let fb: [&str; 4] = ["", "Fizz", "Buzz", "FizzBuzz"];
    for i in 1..=100 {let mut idx = ((i % 3 == 0) as usize * 1) + ((i % 5 == 0) as usize * 2);
    if idx == 0{idx = 5;}println!("{}", fb.get(idx).unwrap_or(&i.to_string().as_str()));}
}