Write a Python program to convert Celsius to Fahrenheit.

Write a Python program to convert Celsius to Fahrenheit.

Program
def myfun():
    celsius=float(input("Enter temperature in Celsius: "))
    # Conversion formula: Fahrenheit = (Celsius * 9/5) + 32
    fahrenheit=(celsius*9/5)+32
    print(celsius," degrees Celsius is equal to ",fahrenheit," degrees Fahrenheit")
    
if __name__=="__main__":
    myfun()


Output:

Enter temperature in Celsius: 28
28.0 degrees Celsius is equal to 82.4 degrees Fahrenheit



More Questions


61 . Write a Python program to convert kilometers to miles.
62 . Write a Python program to convert Celsius to Fahrenheit.
63 . Write a Python Program to Check if a Number is Positive, Negative or Zero.
64 . Write a Python Program to Check if a Number is Odd or Even.
65 . Write a Python Program to Check Leap Year.
66 . Write a Python Program to Check Prime Number.
67 . Write a Python Program to Print all Prime Numbers in an Interval of 1-10.
68 . Write a Python Program to Find the Factorial of a Number.
69 . Write a Python Program to Display the multiplication Table.
70 . Write a Python Program to Print the Fibonacci sequence.
71 . Write a Python Program to Check Armstrong Number?



For latest job updates join Telegram Channel: https://t.me/sateeshm