Main method to test the other methods. System.out.println("20 C is " + toFahrenheit(20) + " F"); System.out.println("68 F is " + toCelsius(68) + " C");
System.out.println("20 C is " + toFahrenheit(20) + " F"); System.out.println("68 F is " + toCelsius(68) + " C");
return (fahrenheit - 32) * 5 / 9;
return celsius * 9 / 5 + 32;