Application Setting
Process bank account transactions:
- The input consists of zero or more non-zero integers signifying “transactions”, followed by 0.
- A positive value is a deposit.
- A negative value is a withdrawal.
Process assume the account has an initial balance of 0, process all transactions, and output:
- Final balance
- Total of all deposits
- Total of all withdrawals