public class TempConv {
public static void main(String[] args) {
double celsius = 25.0;
double fahrenheit = cToF(celsius);
System.out.printf("Temperatura en Fahrenheit: %.2f%n", fahrenheit);
int fahrenheitInt = (int) fahrenheit;
System.out.printf("Temperatura en Fahrenheit (sin decimales): %d%n", fahrenheitInt);
}
public static double cToF(double c) {
return (c * 1.8) + 32;
}
}