Your daily steps target is 10,000. You walked 3,800 steps in the morning and 4,500 in the evening. How many steps remain?
Question: Your daily steps target is 10,000. You walked 3,800 steps in the morning and 4,500 in the evening. How many steps remain?
Solution:
Remaining steps = Max(0, Target − (Morning + Evening))
Total done = 3,800 + 4,500 = 8,300
Remaining = 10,000 − 8,300 = 1,700
So, 1,700 steps remain.
Total done = 3,800 + 4,500 = 8,300
Remaining = 10,000 − 8,300 = 1,700
So, 1,700 steps remain.
Equation/Formula:
remaining = max(0, target − (morning + evening))
Similar Questions: