- Home
- Course Category
- Course Result
- Course Detail
Hot Line: 0124-2383121
Course Introduction
Programs for practice
In the program below, we've asked the user to enter temperature in Fahrenheit to convert it into Celsius in C++
Source Code: Print Fahrenheit to Centigrade Conversion
/* C++ Program - Fahrenheit to Centigrade Conversion */
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float fah, cel;
cout<<"Enter temperature in Fahrenheit : ";
cin>>fah;
cel=(fah-32) / 1.8;
cout<<"Temperature in Celsius = "<<cel;
getch();
}
Output
Enter temperature in Fahrenheit : 98.6
Temperature in Celsius =37.00