Created
June 18, 2022 08:34
-
-
Save paley777/5b8778a63f92eea8d96dbffa7bfbbb2b to your computer and use it in GitHub Desktop.
temperature conversion from celsius to fahrenheit using python
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
# Menginput Suhu dalam Derajat Celcius | |
celcius = float(input("Tuliskan Suhu dalam Celcius: ")) | |
# Menghitung Suhu dalam Derajat Fahrenheit | |
fahrenheit = (celcius * 1.8) + 32 | |
# Menampilkan Hasil Konversi Jarak | |
print('%0.2f Derajat Celcius sama dengan %0.2f Derajat Fahrenheit' % (celcius, fahrenheit)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment