AnkitWebLogic

Convert temperature from Celsius to Fahrenheit | Python

Example 10: WAP to convert temperature from Celsius to Fahrenheit. F=C*9/5+32. 1

# Convert temperature from Celsius to Fahrenheit | ankitweblogic.com
c=int(input("Enter temperature in Celsius:"))
f=c*9/5+32
print("Temperature in Fahrenheit = ",f)
Enter temperature in Celsius: 37
Temperature in Fahrenheit = 98.6
Advertisement