I have made a program that converts Celsius to Fahrenheit and Fahrenheit to Celsius. How is my code?
import java.util.Scanner;
public class TemperatureConversion {
public static void main(String[] args) {
double fahrenheit, celsius;
Scanner input = new Scanner(System.in);
// Celsius to Fahrenheit \u2103 degree Celsius symbol
System.out.println("Input temperature (\u2103): ");
celsius = input.nextDouble();
System.out.println(celsius * 1.8 + 32 + " \u2109 \n");
// Fahrenheit to Celsius \u2109 degree Fahrenheit symbol
System.out.println("Input temperature (\u2109: ");
fahrenheit = input.nextDouble();
System.out.print((fahrenheit - 32) / 1.80008 + " \u2103");
}
}