| 184 | } |
| 185 | |
| 186 | void Withdraw() |
| 187 | { |
| 188 | cout << " Enter the balance you want to withdraw: "; |
| 189 | cin >> withdraw; |
| 190 | if (balance - withdraw > 100) |
| 191 | { |
| 192 | balance = balance - withdraw; |
| 193 | cout << " Successfully done!\n\n"; |
| 194 | } |
| 195 | else if (balance - withdraw < 0) |
| 196 | { |
| 197 | cout << " You do not have such balance of money in your account!\n"; |
| 198 | cout << " Your balance is " << balance << endl; |
| 199 | system("pause"); |
| 200 | system("cls"); |
| 201 | Withdraw(); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | void Compute_Interest() |
| 206 | { |