diff options
| author | tafaar <[email protected]> | 2022-09-29 16:11:16 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-09-29 16:11:16 -0700 |
| commit | 1498ef92b1901090513899666833973fd72a0f59 (patch) | |
| tree | 9f8c0b32d19d8bb3a802f53ed4f3e758eb64a8aa /CST116-Ch6-Debugging | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-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 - Hill | 9 |
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; |