🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X
Questions




































Python Program to Convert Celsius To Fahrenheit.

Last Updated : 26 Jan 2026 Jan 22, Jan 23

Solution:

# Input temperature in Celsius
cel = int(input("Enter value in C: "))

# Convert Celsius to Fahrenheit
f = cel * 1.8 + 32

# Output temperature in Fahrenheit
print("Fahrenheit =", f)

 

OUTPUT:

Enter value in C 25
Farenhiet = 77.0

 

Code Explanation:

  • Input Temperature:

    • cel = int(input("Enter value in C: "))
      Reads Celsius input and converts it to an integer.
  • Convert to Fahrenheit:

    • f = cel * 1.8 + 32
      Converts Celsius to Fahrenheit.
  • Print Result:

    • print("Fahrenheit =", f)
      Shows the Fahrenheit temperature.
Report an error

Meanwhile you can watch this video

Watch Video
Latest Updates