gilbert189 — 4/27/2023, 7:22:57 AM
fn 
    main
    (
    ) 
    {
    for 
        n 
            in 
        1..101 
        {
            let 
                mut 
                out
                    : 
                        String 
                    = 
                ""
                    .
                to_string
                    (
                    )
            ;
            if 
                n 
                    % 
                3 
                    == 
                0 
                {
                    out 
                        += 
                    "Fizz"
                    ;
                } 
            if 
                n 
                    % 
                5 
                    == 
                0 
                {
                    out 
                        += 
                    "Buzz"
                    ;
                }
            if 
                out 
                    == 
                "" 
                {
                    out 
                        = 
                    n
                        .
                    to_string
                        (
                        )
                    ;
                }
            println!
                (
                    "{}"
                        , 
                    out
                )
            ;
        }
    }
♥ 3 ↩ 1 💬 3 comments

comments

pkmnq:

Not terrible enough, you didn’t even reverse the indentation. Try harder next time.

4/27/2023, 7:33:40 AM
gilbert189:

This is supposed to be on a Drake-variant, with this as the worst one

The plans for the panels are:

4/27/2023, 10:33:59 AM
pkmnq:

Then that makes sense. I still want to make this more obgrisated, though.

4/27/2023, 11:03:35 AM