-
Lenguaje
Python
-
Descripción
Convierte grados centígrados a grados Fahrenheit y a kelvins
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
import os
grados_centigrados = float (input ('Ingresa el valor de grados centigrados: '))
kelvins=grados_centigrados+273.15
grados_fahrenheit=1.8*grados_centigrados+32
print ('Valor de grados fahrenheit: ' + repr (grados_fahrenheit))
print ('Valor de kelvins: ' + repr (kelvins))
print ()
os.system ('pause')
grados_centigrados = float (input ('Ingresa el valor de grados centigrados: '))
kelvins=grados_centigrados+273.15
grados_fahrenheit=1.8*grados_centigrados+32
print ('Valor de grados fahrenheit: ' + repr (grados_fahrenheit))
print ('Valor de kelvins: ' + repr (kelvins))
print ()
os.system ('pause')