# Java Program to Convert Fahrenheit to Celsius

Java program to convert fahrenheit to celsius. The celsius scale is a measurement of temperature. It’s a measurement of how hot or cold something is.°C is a popular abbreviation. Water freezes at 32°F and boils at 212°F under normal conditions, denoting a temperature scale on which water freezes at 32°F and boils at 100°F.

## Fahrenheit and Calculation Method

A temperature scale where the boiling point of water is 212 degrees above zero and the freezing point is 32 degrees above zero. The Fahrenheit scale is used to measure temperature and is based on the freezing and boiling temperatures of water. At 32 degrees Fahrenheit, water freezes and at 212 degrees Fahrenheit, it boils.

This is a metric for determining how hot or cold something is. This is a thermometer used to determine how hot or cold something is. In general, the Fahrenheit scale is used in the United States, but the Celsius scale is used in the majority of nations that use the metric system.

## Celsius and How to Calculate

The Celsius scale, sometimes known as centigrade, is based on the freezing point of water being zero degrees Celsius and the boiling point of water being one hundred degrees Celsius. It is commonly referred to as the centigrade scale due to the 100-degree difference between the specified numbers. Anders Celsius, a Swedish astronomer, created it in 1742.

Anders Celsius (1701–1744), a Swedish astronomer, established a temperature scale in 1742 that was the inverse of the current “Celsius” scale, with 0 indicating the boiling point of water and 100 representing the freezing point. Temperature is occasionally expressed in degrees Celsius (°C). 0 degrees Celsius is quite chilly! 40 degrees is quite hot! Take a look at this thermometer, which displays temperatures in both Fahrenheit and Celsius.

## Floating in Java

The word “floating point” is abbreviated as “float.” It’s a built-in data type that’s used to describe numeric values with floating decimal points, according to the specification. Float is a data type that is recognized by C, C++, C#, and many other computer languages. Integer and double are two more popular data types.

## Double Value in Java

A primitive data type in Java is the double keyword. It’s a 64-bit IEEE 754 floating-point with double precision. It’s where variables and methods are declared. It is used to represent decimal numbers in general. This is how the program java program to convert fahrenheit to celsius

## Java Program to Convert Fahrenheit to Celsius

``````import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
float Fahrenheit;
double Celsius;
Scanner scan = new Scanner(System.in);
System.out.print("Enter Temperature in Fahrenheit : ");
Fahrenheit = scan.nextFloat();
Celsius = (Fahrenheit-32) / 1.8;
System.out.print(" Temperature in Celsius = " + Celsius);
}
}``````

Output:

Enter Temperature in Fahrenheit : 103
Temperature in Celsius = 39.44444444444444