Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Richard-David Simmons
- Create a bank account*/
- #include <iostream>
- using namespace std;
- int main() {
- const double INTEREST = 10.0;
- double account;
- cout << "Enter the amount of your account $";
- cin >> account;
- double newBalance;
- newBalance = account + account * (INTEREST / 100);
- cout << "In about six months your account can grow to\n"
- << "$" << newBalance << ", isn't this worth your money?";
- return 0;
- }
Add Comment
Please, Sign In to add comment