C Program to Convert Celsius to Fahrenheit

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

C Program to convert Celsius to Fahrenheit

In this tutorial, we will learn to create a C program that will convert Celsius to Fahrenheit 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 Celsius & Fahrenheit?

Celsius and Fahrenheit 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 Celsius to Fahrenheit.

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

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

Program Code:-

Output:-

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

  • Celsius and Fahrenheit = it will hold the temperature value.

Taking the input temperature from the user in Celsius.

Converting into Fahrenheit.

Printing the output of the program.

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