Something like this should work:
paid = Math.Min(total, payment+paid)
3
solved Can an algorithm for this be done in one line? [closed]
Something like this should work:
paid = Math.Min(total, payment+paid)
3
solved Can an algorithm for this be done in one line? [closed]