diff options
| author | twsta <twsta@TRENTON-PC-V2> | 2022-10-12 20:21:17 -0700 |
|---|---|---|
| committer | twsta <twsta@TRENTON-PC-V2> | 2022-10-12 20:21:17 -0700 |
| commit | cb800d375d829283e4af0c324fad8afea1aef81b (patch) | |
| tree | 524566d154c5459571816d169f50c2acae6519f8 /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-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.cpp | 2 |
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;
|