Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. enum Account{savings,current};
  2.  
  3. public void makeWithdrawal(Account account){
  4. int amount = Convert.ToInt32(Console.Readline());
  5. if(account=="savings"){
  6. withdrawFromSavings(amount);
  7. }else{
  8. withdrawFromCurrent(amount);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement