This Program will convert Temperature given in Fahrenheit to Celsius by using Temperature convertion formula.
Formula: c = (f – 32) * 5/9
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include<iostream> using namespace std; int main() { float cel , far; cout<<"Enter Temperature in Farenheit : "; cin>>far; cel=(far - 32) * 5/9; cout<<"Temperature in Celsius is : " <<cel<<endl; return 0; } |
Output:

c++ examples