11.1.5 Converting between Celsius and Fahrenheit: Celsius2Fahrenheit Fahrenheit2Celsius
The Celsius2Fahrenheit command converts a temperature in
degrees Celsius to the equivalent temperature in Fahrenheit.
-
Celsius2Fahrenheit takes one argument:
T, a number representing representing a temperature in degrees Celsius.
- Celsius2Fahrenheit(T) returns the number representing the
temperature in Fahrenheit.
Examples.
-
Input:
Celsius2Fahrenheit(a)
Output:
- Input:
Celsius2Fahrenheit(0)
Output:
The Fahrenheit2Celsius command converts Fahrenheit
temperatures to Celsius.
-
Fahrenheit2Celcius takes one argument:
T, a number representing representing a temperature in degrees
Fahrenheit.
- Fahrenheit2Celcius(T) returns the number representing the
temperature in Celcius.
Example.
Input:
Fahrenheit2Celsius(212)
Output: