Q:

Java Program to convert Fahrenheit to Celsius

0

Program to convert Fahrenheit to Celsius

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.util.*;
 
class demo1 {
  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);
  }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now