public class ConversorCelciusFahrenheit {
public static void main(String[] args) {
double gradosCelcius = 30.5;
double gradosFahrenheitDecimales = ((gradosCelcius * 1.8) +32);
int gradosFahrenheitEnteros = (int) (gradosFahrenheitDecimales);
System.out.println(gradosCelcius + " °C = " + gradosFahrenheitDecimales + " °F");
System.out.println(gradosCelcius + " °C = " + gradosFahrenheitEnteros + " °F");
}
}