An item costs a pounds and b pence. It was paid with c pounds and d pence. How much change should be returned?
Four numbers are entered: a, b, c, and d.
Output two numbers: e and f – the number of pounds and pence, respectively.
Input #1
5 5 6 5
Output #1
1 0
Input #2
2 17 2 18
Output #2
0 1
Sign in to submit your solution and save your progress.