diff options
| author | Kai <[email protected]> | 2022-10-12 15:54:12 -0700 |
|---|---|---|
| committer | Kai <[email protected]> | 2022-10-12 15:54:12 -0700 |
| commit | 5213503ab796f14a0ece1c83c53ee2156ce89a8a (patch) | |
| tree | 68877c929b327f4e23e8d8e567092940fc9ae2c7 | |
| parent | Merge branch 'main' of https://github.com/CST116/cst116-lab0-debugging-CobraKai2 (diff) | |
| download | cst116-lab0-debugging-cobrakai2-main.tar.xz cst116-lab0-debugging-cobrakai2-main.zip | |
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index ae0d94d..8179f45 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -77,7 +77,7 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ money += money * raise;
cout << "After your raise you have $";
cout << money << endl;
|