aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-09-29 16:11:16 -0700
committerGitHub <[email protected]>2022-09-29 16:11:16 -0700
commit1498ef92b1901090513899666833973fd72a0f59 (patch)
tree9f8c0b32d19d8bb3a802f53ed4f3e758eb64a8aa /CST116-Ch6-Debugging
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-ch6-debugging-hill-1498ef92b1901090513899666833973fd72a0f59.tar.xz
cst116-ch6-debugging-hill-1498ef92b1901090513899666833973fd72a0f59.zip
Create Ch 5 Debugging - Hill
Diffstat (limited to 'CST116-Ch6-Debugging')
-rw-r--r--CST116-Ch6-Debugging/Ch 5 Debugging - Hill9
1 files changed, 9 insertions, 0 deletions
diff --git a/CST116-Ch6-Debugging/Ch 5 Debugging - Hill b/CST116-Ch6-Debugging/Ch 5 Debugging - Hill
new file mode 100644
index 0000000..77a9b5a
--- /dev/null
+++ b/CST116-Ch6-Debugging/Ch 5 Debugging - Hill
@@ -0,0 +1,9 @@
+Enter temperature in Fahrenheit: 212
+212 degrees F = 100 degrees C
+
+1. fahrenheit = 0;
+2. celcius = 0;
+3. print "Enter temperature in Fahrenheit:";
+4. input fahrenheit;
+5. celsius = 5.0F / 9.0F * (fahrenheit - 32);
+6. print fahrenheit + " degrees F = " + celcius + " degrees C" \endline;