Convert Fahrenheit to Celsius in C++ Tamil - Part 5

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 ;

Convert Celsius to Fahrenheit in C++


#include<iostream>

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



Convert Fahrenheit to Celsius in C++ Tamil - Part 5 Convert  Fahrenheit to Celsius  in C++ Tamil - Part 5 Reviewed by Viththiyakaran on 9:10 PM Rating: 5

No comments:

Powered by Blogger.