diff options
Diffstat (limited to 'cst116-Ch6-Pearse-Pseudocode.txt')
| -rw-r--r-- | cst116-Ch6-Pearse-Pseudocode.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cst116-Ch6-Pearse-Pseudocode.txt b/cst116-Ch6-Pearse-Pseudocode.txt new file mode 100644 index 0000000..e29dee7 --- /dev/null +++ b/cst116-Ch6-Pearse-Pseudocode.txt @@ -0,0 +1,11 @@ +main(){ + float Celcius + float fahrenheit + + print("Enter temperaure in Fahrenheit") + input(fahrenheit) + + celcius = 5.0 / 9.0 * (fahrenheit - 32) + + print(fahrenheit + "degrees F = " + celcius + "degrees C") +}
\ No newline at end of file |