From a8e7c46b82e120dbb6d5dac5c21acdd5bca917e3 Mon Sep 17 00:00:00 2001 From: WiserJ Date: Wed, 13 Oct 2021 16:47:26 -0700 Subject: c --- CST116F2021-Lab3/CST116F2021-Lab3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CST116F2021-Lab3/CST116F2021-Lab3.cpp b/CST116F2021-Lab3/CST116F2021-Lab3.cpp index c3309a4..5e5a35b 100644 --- a/CST116F2021-Lab3/CST116F2021-Lab3.cpp +++ b/CST116F2021-Lab3/CST116F2021-Lab3.cpp @@ -20,7 +20,7 @@ int main() 5. Calculate the interest on the loan. 6. Print Loan, Interest Rate, and the sum of the interest and fees.*/ - int loan = 0; + float loan = 0; float rate = 0; float interest = 0; int fees = 0; @@ -33,7 +33,7 @@ int main() cout << "Please input the percent interest rate: "; else { - cout << "\nInvalid response. Ending program."; + cout << "\nInvalid response. Ending program.\n"; return 1; } @@ -43,7 +43,7 @@ int main() cout << "\nYour loan is for $" << loan << " at " << rate << "% interest."; else { - cout << "\nInvalid response. Ending program."; + cout << "\nInvalid response. Ending program.\n"; return 2; } -- cgit v1.2.3