Java Program to Convert Fahrenheit To Celsius

Write a Java program to convert Fahrenheit To Celsius with an example. The math formula to calculate Celsius = (Fahrenheit – 32) * 5 / 9

package Remaining;

import java.util.Scanner;

public class FahrenheitToCelsius {
	
	private static Scanner sc;
	
	public static void main(String[] args) {
		
		sc= new Scanner(System.in);

		System.out.print("Enter the Temperature in Fahrenheit =  ");
		double fahrenheit = sc.nextDouble();
		
		double celsius = (fahrenheit - 32) * 5 / 9;
		
		System.out.println("Temperature in Fahrenheit = " + fahrenheit);
		System.out.println("Temperature in Celsius    = " + celsius);
	}
}
Java Program to Convert Fahrenheit To Celsius