Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Account{savings,current};
- public void makeWithdrawal(Account account){
- int amount = Convert.ToInt32(Console.Readline());
- if(account=="savings"){
- withdrawFromSavings(amount);
- }else{
- withdrawFromCurrent(amount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement