diff options
| author | CEOofOogaBooga <[email protected]> | 2022-10-01 12:36:08 -0700 |
|---|---|---|
| committer | CEOofOogaBooga <[email protected]> | 2022-10-01 12:36:08 -0700 |
| commit | 244e507b1248271ec7c37803a253614ffaeeebd4 (patch) | |
| tree | 74c40230cec87d1b322eae622702cf8f13406a55 /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch6-debugging--trinh--main.tar.xz cst116-ch6-debugging--trinh--main.zip | |
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
| -rw-r--r-- | CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp index 497e2f8..7734dc5 100644 --- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp +++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp @@ -1,6 +1,10 @@ /********************************************************************
* File: CST116-Ch6-Debugging.cpp
-*
+* Thomas Trinh
+* CST 116
+* Chp 6
+* Literals, Variable and Constants & I/O Streams
+*
* General Instructions: Complete each step before proceeding to the
* next.
*
@@ -51,7 +55,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;
|