Tuesday 8 January 2013

Let Us C Chapter 1 Problem No:H-d


#include<iostream.h>
#include<conio.h>
void main()
{
float a;// inputs the temprature in farenheit
cin>>a;
float b;
b=(a-32)*(5.0/9.0);
cout<<"\nThis is the conversion result from farenheit to celcius: "<<b<<endl<<endl;
}

No comments:

Post a Comment

Comments please: