  Get free ebooK with 50 must do coding Question for Product Based Companies solved
Fill the details & get ebook over email  Thank You!
We have sent the Ebook on 50 Must Do Coding Questions for Product Based Companies Solved over your email. All the best!

# Python Program to Convert Celsius to Fahrenheit

Last Updated on November 24, 2022 by Prepbytes In this article, we will solve and discuss the python program to convert celsius to fahrenheit. Conversion from celsius to fahrenheit temperature requires mathematical operations to perform which will enhance your understanding and logical thinking. Let’s see how to code a python program to convert celsius to fahrenheit.

With the advance of science and technology, we now have the knowledge for converting one temperature unit to another temperature unit. In the programming world, we can convert celsius to fahrenheit by simply performing some mathematical operations. Let’s see the formula to convert celsius to fahrenheit

``````Formula
Fahrenheit Temperature = (1.8 * celsius) + 32;``````

## Algorithm for Python Program to Convert Celsius to Fahrenheit

1. Define temperature in Celsius units.
2. Apply in the formula Fahrenheit = (1.8 * celsius) + 32.
3. Print the temperature in Fahrenheit.

## Code Implementation for Python Program to Convert Celsius to Fahrenheit

```celsius = int(input("Enter the Temperature in Celsius :\n"))
fahrenheit = (1.8 * celsius) + 32
print("Temperature in Fahrenheit :", fahrenheit)
```
``````Output
Enter the Temperature in Celsius : 10
Temperature in Fahrenheit : 50.0``````

### Time Complexity

O(1) will be the time complexity as we are performing some scientific calculations which do not require any loop or recursion for the python program to convert celsius to fahrenheit temperature.

Conclusion

In this blog, we have discussed the python program to convert celsius to fahrenheit. For solving big problems, you have to master logical problems like converting celsius to fahrenheit which will increase your logical thinking and also brush up your hands on the coding language. Practice more problems to conquer your dreams.