import java.util.Scanner; public class Temp2 { public static void main(String[] args) { double fahrenheit; double celcius; Scanner input = new Scanner(System.in); System.out.print("Enter a temperature in Fahrenheit: "); fahrenheit = input.nextDouble(); celcius = 5.0 / 9.0 * (fahrenheit - 32.0); System.out.println(fahrenheit + " Fahrenheit is " + celcius + " Celcius"); } }