public static void main(String[] args){
int temperatura = 32;
double temperaturaFahrenheit = (temperatura * 1.8) + 32;
System.out.println(temperatura +"°C convertidos em Fahrenheit é " + temperaturaFahrenheit +"°F");
// Usando casting explícito
int temperaturaFah = (int) temperaturaFahrenheit;
System.out.println("A temperatura em Fahrenheit sem casas decimais é: "+ temperaturaFah +"°F");
}
}