Sunday, December 2, 2012

Conversion of Temperature from Fahrenheit to Celsius using C++


#include<iostream.h>
#include<conio.h>
int main()
{
float f,c;
cout<<"Enter the temparature in farhenheit";
cin>>f;
c=(f-32)*5/9.0;
cout<<"\n Temparature in centigrade is:"<<c;
return 0;
}

No comments:

Post a Comment

DC motor control with Pulse Width Modulation Part 1

DC Motor intro DC motor is a device which converts electrical energy into kinetic energy. It converts the DC power into movement. The typica...