From eeb7d041bac7a22986b98a42157b8f85d97f3afd Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Sun, 2 Oct 2022 08:54:51 -0700 Subject: Fixed calculation --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 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; -- cgit v1.2.3