C Program To Convert Fahrenheit To Celsius Last Updated : 21 Jul, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 CelsiusT(°C) = (T(°F) - 32) × 5/9 where, T(°C): Temperature in Celsius.T(°F): Temperature in Farenheit.AlgorithmDefine temperature in Fahrenheit Units.Apply the formula to convert temperature in Fahrenheit to Celsius.Print the temperature in Celsius.Program to Convert Fahrenheit to Celcius in C C // C Program to convert // Fahrenheit to Celsius #include <stdio.h> // Function to convert Degree // Fahrenheit to Degree Celsius float fahrenheit_to_celsius(float f) { return ((f - 32.0) * 5.0 / 9.0); } // Driver code int main() { float f = 40; // Passing parameter to function printf("Temperature in Degree Celsius : %0.2f", fahrenheit_to_celsius(f)); return 0; } OutputTemperature in Degree Celsius : 4.44Complexity AnalysisTime Complexity: O(1)Auxiliary Space: O(1) Please refer complete article on the Program for Fahrenheit to Celsius conversion for more details! Comment More infoAdvertise with us Next Article Convert a Char Array to Double in C K kartik Follow Improve Article Tags : C Programs C Language C Basic Programs Similar Reads Convert a Char Array to Double in C Converting a char array to a double is a common operation in C programming. It involves taking a string of characters that represent a numerical value and converting it to a double-precision floating-point value. This can be done by using various approaches listed below: Convert char array into doub 4 min read Convert a given temperature to another system based on given boiling and freezing points There are two thermometers and given five integers F1, B1, F2, B2, and T, where F1 and B1 are the Freezing points and Boiling Point of water on thermometer 1, and F2 and B2 are the Freezing points and Boiling Point of water on thermometer 2 respectively, and T is some temperature recorded on thermom 5 min read cbrt() Function in C cbrt() function in C is a predefined function in the math.h library used to calculate the cube root of a given number. To use this function, we must include the <math.h> header file in our program. It returns the cube root of the number as a double and works with double data types. For other d 3 min read tan() Function in C tan() function in C programming is provided by the math.h header file and it is used to calculate the tangent of an angle x where x is represented in radians. This function returns the tangent of a given angle value in radians and it only works for right-angled triangles. Syntax of tan() double tan( 2 min read C cos() Function cos() function in C programming is provided by the math.h header file and is used to calculate the cosine of an angle (x) where (x) is represented in radians. This function returns the cosine of a given angle value in radians for a right-angled triangle. Syntax of cos() double cos(double x);Paramete 2 min read C++ Program To Convert Fahrenheit To Celsius Given a Temperature n in Fahrenheit scale convert it into Celsius scale. Examples: Input: 32 Output: 0 Input: -40 Output: -40 Formula for converting Fahrenheit scale to Celsius scale T(°C) = (T(°F) - 32) à 5/9 C++ // C++ program to convert Fahrenheit // scale to Celsius scale #include <bits/stdc+ 1 min read Like