programming-examples/python/Math/Calculate wind chill index.py

5 lines
278 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import math
v = float(input("Input wind speed in kilometers/hour: "))
t = float(input("Input air temperature in degrees Celsius: "))
wci = 13.12 + 0.6215*t - 11.37*math.pow(v, 0.16) + 0.3965*t*math.pow(v, 0.16)
print("The wind chill index is", int(round(wci, 0)))