The post Write a Java program to convert Celsius into Fahrenheit 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("Celsius: ");
double celsius = scanner.nextDouble();
double fahrenheit = celsius * 1.8 + 32;
System.out.println("Fahrenheit: " + fahrenheit);
}
}
Celsius: 100
Fahrenheit: 212.0
The post Write a Java program to convert Celsius into Fahrenheit appeared first on OctopusCodes.
]]>