You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
401 B
Java
14 lines
401 B
Java
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);
|
|
}
|
|
} |