Initialize Method

Fahrenheit to Celsius Converter

Let’s write a program which will convert fahrenheit value in celsius value.

The formula to convert a temperature from fahrenheit to celsius is given below.

Celsius = (fahrenheit - 32) * 5 / 9

Change the fahrenheit value from 77 to some other value and run the code again to see the result.