# Python Program to Convert Celsius to Fahrenheit

«
»

This is a Python Program to take the temperature in Celsius and convert it to Fahrenheit.

Problem Description

The program takes the temperature in Celsius and converts it to Fahrenheit.

Problem Solution

1. Take the value of temperature in Celsius and store it in a variable.
2. Convert it to Fahrenheit.
3. Print the final result.
4. Exit.

Program/Source Code

Here is source code of the Python Program to take the temperature in Celsius and convert it to Fahrenheit. The program output is also shown below.

```
celsius=int(input("Enter the temperature in celcius:"))
f=(celsius*1.8)+32
print("Temperature in farenheit is:",f)```
Program Explanation

1. User must first enter the value of temperature in Celsius.
2. Using the formula of: f=(c*1.8)+32, convert Celsius to Fahrenheit.
3. Print the temperature in Fahrenheit.

Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!
Runtime Test Cases
```
Case 1:
Enter the temperature in celcius:32
Temperature in Fahrenheit is: 89.6

Case 2:
Enter the temperature in celcius:48
Temperature in Fahrenheit is: 118.4```

Sanfoundry Global Education & Learning Series – Python Programs.

To practice all Python programs, here is complete set of 150+ Python Problems and Solutions. 