fn mass_to_fuel_with_fuel(acc: i32, mass: i32) -> i32 {
    let mut total = 0;
    let mut fuel_mass = mass_to_fuel(0, mass);
    while fuel_mass > 0 {
        total += fuel_mass;
        fuel_mass = mass_to_fuel(0, fuel_mass);
    }
    acc + total
}
/// Converts input mass to required fuel units, also taking into account the required
/// fuel for the fuel itself
Converts input mass to required fuel units, also taking into account the required
fuel for the fuel itself
Converts input mass to required fuel units also taking into account the required fuel for the fuel itself
fn mass_to_fuel_with_fuel(acc: i32, mass: i32) -> i32 {
    let mut total = 0;
    let mut fuel_mass = mass_to_fuel(0, mass);
    while fuel_mass > 0 {
        total += fuel_mass;
        fuel_mass = mass_to_fuel(0, fuel_mass);
    }
    acc + total
}
fn mass_to_fuel_with_fuel ( acc : i32 , mass : i32 ) -> i32 { let mut total = 0 ; let mut fuel_mass = mass_to_fuel ( 0 , mass ) ; while fuel_mass > 0 { total += fuel_mass ; fuel_mass = mass_to_fuel ( 0 , fuel_mass ) ; } acc + total }
Converts input mass to required fuel units, also taking into account the required
fuel for the fuel itself
Converts input mass to required fuel units also taking into account the required fuel for the fuel itself
acc
i32
mass
i32
acc
i32
mass
i32