aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
diff options
context:
space:
mode:
authortwsta <twsta@TRENTON-PC-V2>2022-10-12 20:21:17 -0700
committertwsta <twsta@TRENTON-PC-V2>2022-10-12 20:21:17 -0700
commitcb800d375d829283e4af0c324fad8afea1aef81b (patch)
tree524566d154c5459571816d169f50c2acae6519f8 /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-ch6-debugging-stark-cb800d375d829283e4af0c324fad8afea1aef81b.tar.xz
cst116-ch6-debugging-stark-cb800d375d829283e4af0c324fad8afea1aef81b.zip
added parentheses around Fahrenheit - 32
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
-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..cfede8f 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 / 9 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;