aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging
diff options
context:
space:
mode:
authorJonCr <[email protected]>2022-10-12 17:48:13 -0700
committerJonCr <[email protected]>2022-10-12 17:48:13 -0700
commitc4d29bc1c05b98e12930266bc6a0b6db3262b41c (patch)
tree5dc98a2faa9b1d6cfda41f8987e942441866e2f7 /CST116-Ch6-Debugging
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-ch6-debugging-cognitiveshadow-main.tar.xz
cst116-ch6-debugging-cognitiveshadow-main.zip
FinishedHEADmain
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 497e2f8..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;