diff options
| author | Taylor Rogers <[email protected]> | 2022-10-02 08:54:51 -0700 |
|---|---|---|
| committer | Taylor Rogers <[email protected]> | 2022-10-02 08:54:51 -0700 |
| commit | eeb7d041bac7a22986b98a42157b8f85d97f3afd (patch) | |
| tree | 68401ea012ca17332218869532b8678693617325 /Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | |
| parent | Exercise 2 partial (diff) | |
| download | cst116-lab0-debugging-taylorrog-eeb7d041bac7a22986b98a42157b8f85d97f3afd.tar.xz cst116-lab0-debugging-taylorrog-eeb7d041bac7a22986b98a42157b8f85d97f3afd.zip | |
Fixed calculation
Diffstat (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 895c887..9ceae8c 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -92,9 +92,9 @@ int main() cout << "Enter percent raise: ";
cin >> raise;
- money = money * raise;
+ money = money + money * raise;
-c cout << "After your raise you have $";
+ cout << "After your raise you have $";
cout << money << endl;
return 0;
|