• Omega_Haxors@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    8 months ago

    It recursively subtracts until the number goes at or below zero. The iterations is the output and the reminder is how much it went below zero.