The post Write a Java program to convert Fahrenheit into Celsius appeared first on OctopusCodes.
]]>package octopuscodes.com.demo;
import java.util.Scanner;
public class Demo {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.print("Fahrenheit: ");
double fahrenheit = scanner.nextDouble();
double celsius = (fahrenheit - 32) / 1.8;
System.out.println("Celsius: " + celsius);
}
}
Fahrenheit: 212
Celsius: 100.0
The post Write a Java program to convert Fahrenheit into Celsius appeared first on OctopusCodes.
]]>