From 5213503ab796f14a0ece1c83c53ee2156ce89a8a Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 12 Oct 2022 15:54:12 -0700 Subject: fixed the calc --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3