Skip to content

Instantly share code, notes, and snippets.

@ivanjx
Created September 23, 2019 11:55
Show Gist options
  • Save ivanjx/46fdf99ed80bab2187bebc47c3c81014 to your computer and use it in GitHub Desktop.
Save ivanjx/46fdf99ed80bab2187bebc47c3c81014 to your computer and use it in GitHub Desktop.
# 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