Java program to convert
Fahrenheit to Celsius
program
[Link]
Java program to convert Fahrenheit to
Celsius: This code does temperature
conversion from Fahrenheit scale to Celsius
scale.
Java programming code
import [Link].*;
class FahrenheitToCelsius {
public static void main(String[] args) {
float temperatue;
Scanner in = new Scanner([Link]);
[Link]("Enter temperatue in Fahrenheit");
temperatue = [Link]();
temperatue = ((temperatue - 32)*5)/9;
[Link]("Temperatue in Celsius = " +
temperatue);
}
}
Download Fahrenheit to Celsius program
class file.
[Link]
Output of program:
For Celsius to Fahrenheit conversion use
T = 9*T/5 + 32
where T is temperature on Celsius scale.
Create and test Fahrenheit to Celsius
program yourself for practice.
[Link]