Try this one:
class DegreeCtoFahrenheit {
public static void main (String[] args) { double tempInDegC = 30.2; var tempInF = tempInDegC * (9/5) +32; System.out.println("Temperature in Fahrenheit is" + tempInF); }