Lab 6

2/27/06

Task: Write a program that asks the user whether they want to convert a temperature from Celsius to Fahrenheit or from Fahrenheit to Celsius. Print out the appropriate conversion.

Fahrenheit to Celsius:
C = (F-32) * 5/9

Celsius to Fahrenheit: F = (C*9/5) + 32

Your program should contain two if() statements.

Purpose: The primary purpose of this program is to introduce if statements.