aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging
diff options
context:
space:
mode:
authortwsta <twsta@TRENTON-PC-V2>2022-10-12 20:28:37 -0700
committertwsta <twsta@TRENTON-PC-V2>2022-10-12 20:28:37 -0700
commitba007e5f691589db0b113300b4bf0467c38f343a (patch)
tree9971ee405ae7b06dcbb85114a8afaeae6cf22c28 /CST116-Ch6-Debugging
parentadded .gitignore (diff)
downloadcst116-ch6-debugging-stark-ba007e5f691589db0b113300b4bf0467c38f343a.tar.xz
cst116-ch6-debugging-stark-ba007e5f691589db0b113300b4bf0467c38f343a.zip
fixed integer division
Diffstat (limited to 'CST116-Ch6-Debugging')
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index cfede8f..a4cede0 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -51,7 +51,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * (fahrenheit - 32);
+ celcius = 5.0 / 9.0 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;