• Omega_Haxors@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 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.