Documentos de Académico
Documentos de Profesional
Documentos de Cultura
import java.util.Scanner;
public class temperatura {
public static void main(String[] args) {
double c =sc.nextDouble();
m
System.out.println(c + " grados centigrados son equivalente a " +
er as
rankie(c) + " grados Rankine");
co
System.out.println(c + " grados centigrados son equivalente a " +
eH w
fahrenheit(c) + " grados farenheit");
System.out.println(c + " grados centigrados son equivalente a " +
o.
kelvin(c)+ " grados kelvin");
}
rs e
ou urc
static double rankie (double c) {
double r = 9/5.0 * c + 491.67;
return r;
}
o
return f;
}
static double kelvin (double c) {
double k= c + 273.15;
return k;
ed d
}
ar stu
}
is
Th
sh
This study source was downloaded by 100000788345074 from CourseHero.com on 03-27-2021 15:54:21 GMT -05:00
https://www.coursehero.com/file/59530923/temperaturadocx/
Powered by TCPDF (www.tcpdf.org)