CONVERT CELSIUS TO FAHRENHEIT

 CONVERT CELSIUS TO FAHRENHEIT

The celsius_to_fahrenheit function converts Celsius to Fahrenheit.

Program:

def celsius_to_fahrenheit(celsius):
    return (celsius * 9/5)+32

if __name__=="__main__":
    print(celsius_to_fahrenheit(25))

Output:
77.0


Comments

Popular posts from this blog

TRANSPOSE OF A MATRIX

FIND THE DAY OF YEAR

CHECK IF DATE IS VALID