C Program to Convert Celsius to Fahrenheit

In this example, We will learn how to convert Celsius into Fahrenheit. This we use following formula

C Program to Convert Celsius to Fahrenheit

C Program to Convert Celsius to Fahrenheit

#include<stdio.h>
void main()
{
  float c,f;
  printf("Enter temperature in Celsius : ");
  scanf("%f",&c);
  f=(c * 1.8)+32;
  printf("%.2f degree Celsius is = %.2f degree Fahrenheit",c,f);
}

Output

Enter temperature in Celsius : 100
100.00 degree Celsius is = 212.00 degree Fahrenheit
Share in a Single Click

Leave a Reply

Your email address will not be published. Required fields are marked *