Easy
Wallet Spending
Write
class Wallet starting with a balance, and a method spend(amount) that subtracts it. Read the balance and two amounts, spend both and print the balance.Input
Three integers.
Output
One integer.
Sample 1
Input
500 100 50
Output
350
Sample 2
Input
100 0 0
Output
100
Output appears here