Bank Account Class

Medium

📝 Description

Implement a BankAccount class with deposit/withdraw methods

Input Format

Series of transactions

Output Format

Account balance after transactions

Constraints

No overdrafts allowed

🔍 Sample Input

deposit 100
withdraw 50
            

✅ Sample Output

Balance: 50
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run