C Program to convert Fahrenheit to Celsius

In this tutorial you will learn about the C Program to convert Fahrenheit to Celsius and its application with practical example.

C Program to convert Fahrenheit to Celsius

In this tutorial, we will learn to create a C program that will convert Fahrenheit to Celsius in C programming.

Table Of Contents

Prerequisites

Before starting with this tutorial, we assume that you are the best aware of the following C programming topics:

  • Operators in C Programming.
  • Basic Input and Output function in C Programming.
  • Basic C Programming.
  • Arithmetic Operators in C Programming.

What are Fahrenheit & Celsius?

Fahrenheit and Celsius are the two most common scales to measure the temperature. Both the scales are having different values for the measurements of temperature. The formula for conversion is given below.

Algorithm:-

Program to convert Fahrenheit to Celsius.

In this program, we will first take the input from the user in Fahrenheit. And then we will convert that input into Celsius. Using the above table conversion formula and  Printing the result.

With the help of the below program, we can convert Fahrenheit to Celsius.

Program Code:-

Output:-

In the above program, we have first initialized the required variable.

  • Fahrenheit = it will hold the temperature value.

Taking the input temperature from the user in Fahrenheit.

Converting into Celsius.

Printing the output of the program.

In this tutorial we have learn about the C Program to convert Fahrenheit to Celsius and its application with practical example. I hope you will like this tutorial.