C Program Convert Fahrenheit to Celsius


Prev Tutorial Next Tutorial

Convert Temperature Fahrenheit to Celsius Program in C

Fahrenheit and Celsius are two unit for measure temperature. We have standard formula to Convert Fahrenheit to Celsius using this formula you can change temperature Fahrenheit to Celsius.

Formula

 c = (f - 32) * 5/9;
 

Program to convert Fahrenheit to Celsius

#include<stdio.h>
#include<conio.h>

void main()
{
 float cel, far;
 clrscr();
 printf("Enter temp. in Fahrenheit: ");
 scanf("%f",&far);
 cel = (far - 32) * 5/9;
 printf("Temp. in Celsius: %f",cel);
 getch();
}

Output

Enter temp. in Fahrenheit: 98
Temp. in Celsius: 36.666668

Prev Tutorial Next Tutorial

Advertisements




Download Projects

Advertisements

FREE Online Google Play APK Downloader

Buy APP Installs, Buy 100% Genuine Installs