6 lines
77 B
Ruby
6 lines
77 B
Ruby
def remaining(total, done)
|
|
[0, total - done].max
|
|
end
|
|
|
|
puts remaining(4, 1)
|