
- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion
Convert Fahrenheit to Celsius using C Program
The logic that we implement to convert Fahrenheit to Celsius is as follows −
celsius = (fahrenheit - 32)*5/9;
Algorithm
Refer to the algorithm given below to convert Fahrenheit to Celsius.
Step 1: Declare two variables farh, cels Step 2: Enter Fahrenheit value at run time Step 3: Apply formula to convert Cels=(farh-32)*5/9; Step 4: Print cels
Example
Following is the C program to convert Fahrenheit to Celsius −
#include<stdio.h> int main(){ float fahrenheit, celsius; //get the limit of fibonacci series printf("Enter Fahrenheit:
"); scanf("%f",&fahrenheit); celsius = (fahrenheit - 32)*5/9; printf("Celsius: %f
", celsius); return 0; }
Output
When the above program is executed, it produces the following result −
Enter Fahrenheit: 100 Celsius: 37.777779
- Related Articles
- C# Program to Convert Fahrenheit to Celsius
- C++ program to convert Fahrenheit to Celsius
- How to convert Celsius to Fahrenheit and Fahrenheit to Celsius?
- How to convert Fahrenheit into Celsius and, Celsius into Fahrenheit ?
- How to Convert Celsius To Fahrenheit using Python?
- How to convert Celsius into Fahrenheit?
- C# Program to perform Celsius to Fahrenheit Conversion
- Program for Fahrenheit to Celsius conversion in C
- Program for Celsius To Fahrenheit conversion in C++
- Write a program in Python Pandas to convert a dataframe Celsius data column into Fahrenheit
- How to Convert Temperature Units between Celsius, Kelvin and Fahrenheit in Excel?
- Relation Between Celsius and Fahrenheit
- Explain the conversion of Celsius and Fahrenheit.
- What is the formula to convert temperature in the Fahrenheit scale to the Centigrade or Celsius scale?
- What is the difference between the Celsius and Fahrenheit scales?

Advertisements