From f4fac080827e94ca77a83d23eee93cfaff1a530a Mon Sep 17 00:00:00 2001 From: Trenton Stark Date: Sat, 1 Oct 2022 12:57:30 -0700 Subject: Percentage raise is now a percentage and not a decimal --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp') diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 1944742..9c69bf8 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -82,7 +82,7 @@ int main() cout << "Enter percent raise: "; cin >> raise; - money += money * raise; + money += money * raise/100; cout << "After your raise you have $"; cout << money << endl; -- cgit v1.2.3