Convert fahrenheit to celsius in java

In this tutorial, we will see simple java program to convert fahrenheit to celsius in java.
You can convert fahrenheit to celsius using this formula.

cel = (fh-32) / 1.8;

Output:

Enter Temperature in Fahrenheit : 79
Equivalent Temperature in Celsius : 26.11111111111111

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *