Skip to content

Instantly share code, notes, and snippets.

@paley777
Created June 18, 2022 08:34
Show Gist options
  • Save paley777/5b8778a63f92eea8d96dbffa7bfbbb2b to your computer and use it in GitHub Desktop.
Save paley777/5b8778a63f92eea8d96dbffa7bfbbb2b to your computer and use it in GitHub Desktop.
temperature conversion from celsius to fahrenheit using python
# 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