diff options
| author | WiserJ <[email protected]> | 2021-10-13 16:47:26 -0700 |
|---|---|---|
| committer | WiserJ <[email protected]> | 2021-10-13 16:47:26 -0700 |
| commit | a8e7c46b82e120dbb6d5dac5c21acdd5bca917e3 (patch) | |
| tree | a7e4d4be6e8c37a283715a81398c6ed5f3adf6a2 | |
| parent | b (diff) | |
| download | cst116-lab3-jeffwoit-a8e7c46b82e120dbb6d5dac5c21acdd5bca917e3.tar.xz cst116-lab3-jeffwoit-a8e7c46b82e120dbb6d5dac5c21acdd5bca917e3.zip | |
c
| -rw-r--r-- | CST116F2021-Lab3/CST116F2021-Lab3.cpp | 6 |
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; } |