diff options
| author | Kai <[email protected]> | 2022-10-12 19:31:36 -0700 |
|---|---|---|
| committer | Kai <[email protected]> | 2022-10-12 19:31:36 -0700 |
| commit | 2d33bb38a761133dee87ba3d355d2d1ae41de262 (patch) | |
| tree | 962e862f974d181ec6d83fc9ccde9c7fcfc58c7c /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | |
| parent | first step (diff) | |
| download | cst116-ch6-debugging-cobrakai2-2d33bb38a761133dee87ba3d355d2d1ae41de262.tar.xz cst116-ch6-debugging-cobrakai2-2d33bb38a761133dee87ba3d355d2d1ae41de262.zip | |
more adjustments
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..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;
|