Created
September 23, 2019 11:55
-
-
Save ivanjx/46fdf99ed80bab2187bebc47c3c81014 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Input celcius. | |
celcius = float(input('Suhu celcius: ')) | |
# Konversi ke kelvin. | |
kelvin = celcius + 273 | |
# Konversi ke Reamur. | |
reamur = celcius * 4 / 5 | |
# Konversi ke Fahrenheit. | |
fahrenheit = celcius * 9 / 5 + 32 | |
# Print hasil. | |
print("Kelvin: " + str(kelvin)) | |
print("Reamur: " + str(reamur)) | |
print("Fahrenheit: " + str(fahrenheit)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment