using namespace std;
int main()
{
double celsius, Fahrenheits ; //declaration of variable
cout<<" Enter Fahrenheits value\n"; //command
cin>>Fahrenheits ; // input
celsius = (Fahrenheits -32)*5.0/9.0; // calculation
cout<<Fahrenheits <<" degrees Fahrenheits is "<<celsius;
cout<<" degree celsius.\n";
return 0;
}
The compilation of the above program....
No comments:
Post a Comment