Complete the program below
so that it prompts the user for a temperature value,
followed by a character that represents the type of temperature:
- C for Celsius
- F for Farhenheit
If the character represents Fahrenheit temperature (F), convert
the temperature value to the equivalent value in Celsius,
using the following formula:
C = (5/9)(F - 32.0)
where C represents the Celsius temperature value,
and F represents the Farhenheit temperature value.
If the character represents Celsius temperature (C), convert
the temperature value to the equivalent value in Farhenheit,
using the following formula:
F = (9/5)C + 32.0
with F and C defined the same as above.
Print the converted value.