You can convert the celsius value to fahrenheit by using the formula:
fahrenheit = celsius * 1.8 + 32
Example: Celsius to Fahrenheit
Output
Enter a celsius value: 55 55 degree celsius is equal to 131 degree fahrenheit.
In the above program, the user enters the celsius value and is stored in the celsius variable. Then the fahrenheit formula is used to convert celsius value to fahrenheit.
You can convert fahrenheit value to celsius using the formula:
celsius = (fahrenheit - 32) / 1.8