Java program to convert Fahrenheit to Celsius.

import java.util.*;
 
class FahrenheitToCelsius {
  public static void main(String[] args) {
    float temperatue;
    Scanner in = new Scanner(System.in);      
 
    System.out.println("Enter temperatue in Fahrenheit");
    temperatue = in.nextInt();
 
    temperatue = ((temperatue - 32)*5)/9;
 
    System.out.println("Temperatue in Celsius = " + temperatue);
  }
}
Java program to convert Fahrenheit to Celsius. Java program to convert Fahrenheit to Celsius. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.