public class Main {
public static void main(String[] args) {
double gradosCelsius = 14;
double gradosFahrenheit;
gradosFahrenheit = (gradosCelsius * 1.8) + 32;
System.out.println("CON DECIMALES: Grados Celsius: " + gradosCelsius + " a Grados Fahrenheit: " + gradosFahrenheit);
int tempGradosCelsius = (int) gradosCelsius;
int tempGradosFahrenheit = (int) gradosFahrenheit;
System.out.println("SIN DECIMALES: Grados Celsius: " + tempGradosCelsius + " a Grados Fahrenheit: " + tempGradosFahrenheit);
}
}