fn checked_div_mod(a, b) {
    let div = a.checked_div(b)?;
    Some((div, a % b))
}

if let Some((div, m)) = checked_div_mod(5, 2) {
    println!("Result: {}, {}", div, m);
}

if let Some((div, m)) = checked_div_mod(5, 0) {
    println!("Result: {}, {}", div, m);
}
