Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Response; // What the user will input to decide which account he wants to withdraw
- double Checkings; // The Checkings needs to be an array
- double Savings; // the Savings needs to be an array
- cout << "Which account would you like to check balance of?"<<endl;
- cout << "(1) checking"<<endl;
- cout << "(2) savings"<<endl;
- cin >> Response;
- system("cls");//system("clear"); in unix
- Checkings =7;
- Savings =5;
- while (Response <1 || Response >2)
- {
- cout << "Which account would you like to check balance of? 1 for checking and 2 for savings" << endl;
- cin >> Response;
- }
- if (Response == 1)
- {
- cout << Checkings << endl;
- }
- if (Response == 2)
- {
- cout << Savings << endl;
- }
Add Comment
Please, Sign In to add comment