fn avg_days_in_month (leap_year: bool) -> f32 {
    if leap_year {
        return 365. / 12.;
    } else {
        return 366. / 12.;
    }
}
// returns average days in the months of a (non-)leap year
// Could be used for more analytical stuff
returns average days in the months of a (non-)leap year
Could be used for more analytical stuff
returns average days in the months of a ( non - ) leap year Could be used for more analytical stuff
fn avg_days_in_month (leap_year: bool) -> f32 {
    if leap_year {
        return 365. / 12.;
    } else {
        return 366. / 12.;
    }
}
fn avg_days_in_month ( leap_year : bool ) -> f32 { if leap_year { return 365. / 12. ; } else { return 366. / 12. ; } }
returns average days in the months of a (non-)leap year
Could be used for more analytical stuff
returns average days in the months of a ( non - ) leap year Could be used for more analytical stuff
leap_year
bool