VOOZH about

URL: https://www.geeksforgeeks.org/c/c-program-to-convert-fahrenheit-to-celsius/

⇱ C Program To Convert Fahrenheit To Celsius - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

C Program To Convert Fahrenheit To Celsius

Last Updated : 23 Jul, 2025

In this article, we will learn to write a C Program to convert temperature from Fahrenheit to Celsius by applying the conversion formula to calculate the equivalent temperature in Celsius. For example, 82° in Fahrenheit is equal to 27.7° in Celcius.

Formula to Convert Fahrenheit to Celsius

T(°C) = (T(°F) - 32) × 5/9 

where,

  • T(°C): Temperature in Celsius.
  • T(°F): Temperature in Farenheit.

Algorithm

  1. Define temperature in Fahrenheit Units.
  2. Apply the formula to convert temperature in Fahrenheit to Celsius.
  3. Print the temperature in Celsius.

Program to Convert Fahrenheit to Celcius in C


Output
Temperature in Degree Celsius : 4.44

Complexity Analysis

  • Time Complexity: O(1)
  • Auxiliary Space: O(1)

Please refer complete article on the Program for Fahrenheit to Celsius conversion for more details!

Comment
Article Tags: