Convert Fahrenheit to Celsius in C++

Advertisements

Convert Celsius-Fahrenheit in C++ Find Area of Rectangle in C++

C++ Program to Convert Fahrenheit to Celsius

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

Formula

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

Convert Fahrenheit to Celsius in C++


#include<iostream.h>
#include<conio.h>

void main()
{
 float cel, far;
  clrscr();
  cout<<"Enter temp. in Fahrenheit: ";
  cin>>far;
  cel = (far - 32) * 5/9;
  cout<<"Temp. in Celsius: "<<cel;
 getch();
}

Output

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

Convert Celsius-Fahrenheit in C++ Find Area of Rectangle in C++

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements