Menu



Java Program To Convert Fahrenheit to Celsius Source code


FarToCel.java

import java.util.*;
class FarToCel {
public static void main(String[] args) {
float temp;
Scanner in = new Scanner(System.in);
System.out.println("Enter a temperatue value in Fahrenheit");
temp = in.nextInt();
temp = ((temp - 32)*5)/9;
System.out.println("Temperatue value in Celsius is = " + temp);
}
}
Celcius