Exercise 1

temperature conversion

Write a program to convert temperature values from Celsius to Fahrenheit according to the equation:

\begin{equation} F = \frac{9}{5}C + 32 \end{equation}

The program should as the user to input the temperature in Celsius, and then print out a sentence giving the temperature in Fahrenheit, like this:

#+BEGIN_SRC example enter the temperature in Celsius: 22 22 degrees Celsius is 71.6 degrees Fahrenheit #+END_SRC example


Paul Gribble | fall 2014
This work is licensed under a Creative Commons Attribution 4.0 International License
Creative Commons License