gilbert189 @gilbert189
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
                )
            ;
        }
    }
Apr 27, 2023, 7:22 AM
3

comments

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

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

The plans for the panels are:

  • K&R style: Normal

  • Allman style: Fair

  • Whitesmiths style: Obscure

  • This: No.

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