aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
diff options
context:
space:
mode:
authorTim Pearse <[email protected]>2022-10-08 13:47:32 -0700
committerTim Pearse <[email protected]>2022-10-08 13:47:32 -0700
commit53c3f946c66535b31c0b116521342701dd4ceff7 (patch)
tree01b5346ae5cea1042145a2a0e07d0e05ebdd06d3 /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
parentChange 0 : Getting gitignore in there (diff)
downloadcst116-ch6-debugging-legokid1503-main.tar.xz
cst116-ch6-debugging-legokid1503-main.zip
Change 1 : Debuging Exercises & pseudocodeHEADmain
Next Step : See if I did this right.
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..268a22e 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;