HASIL PYTHON *1 (Celcius to Fahrenhit)
Celcius ke Fahrenheit
COMMAND:
# Program konversi Celcius ke Fahrenheit celcius = float(input("Masukkan suhu dalam Celcius: "))
fahrenheit = (celcius * 9/5) + 32 print(f"{celcius) derajat Celcius sama dengan {fahrenheit:.2f}
derajat Fahrenheit")
celcius = float(input("Masukkan suhu dalam Celcius: "))
fahrenheit = (celcius * 9/5) + 32 print(f"{celcius) derajat Celcius sama dengan {fahrenheit:.2f} derajat Fahrenheit")
HASIL:
Masukkan suhu dalam Celcius: 23 23.0 derajat Celcius sama dengan 73.40 derajat Fahrenheit Masukkan suhu dalam Celcius: 10 10.0 derajat Celcius sama dengan 50.00 derajat Fahrenheit
** Process exited - Return Code: 0 **



Komentar
Posting Komentar