Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Java Program to calculate Fahrenheit to Celsius

Sample Input 1:

Enter the Fahrenheit: 284

Sample Output 1:

The Celsius Is :140

Program or Solution


Program Explanation

Get Fahrenheit as input (using scanner class) Calculate Celsius using Formula celsius=(fahreheit-32)*0.5556 print Celcius (using system.out.println).