2011년 10월 29일 토요일

Fahrenheit to Celsius

f = input("Fahrenheit : ")
f = int(f)
c = round(5/9*(f-32),1)
print("Celsius : ",c)

>>>
Fahrenheit : 80
Celsius :  26.7

댓글 없음:

댓글 쓰기