aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116F2021-Lab3/CST116F2021-Lab3.cpp6
1 files 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;
}