public class DesafioConversaoTemperatura {
public static void main(String[] args) {
double temperaturaEmCelsius = 36.4;
double temperaturaEmFahrenheit = (temperaturaEmCelsius * 1.8) + 32;
String titulo;
titulo = """
***********************************************
Este é um programa de conversão de temperaturas
***********************************************
""";
System.out.println(titulo);
String mensagem = String.format("A temperatura de %f Celsius é equivalente a %f Fahrenheit", temperaturaEmCelsius, temperaturaEmFahrenheit);
System.out.println(mensagem);
int temperaturaEmFahrenheitInteira = (int) temperaturaEmFahrenheit;
System.out.println("A temperatura em Fahrenheit inteira é: " + temperaturaEmFahrenheitInteira);
}
}