Friday, January 27, 2017

A program to convert Celsius temps to Fahrenheit


def main():
    celsius = eval(input("What is the Celsius temperature? "))
    fahrenheit = (9/5) * celsius + 32
    print("The temperature is ",fahrenheit," degrees Fahrenheit.")
main()

No comments:

Post a Comment