To convert Celsius to Fahrenheit
#include
main ()
{
float fahreheit;
int celsius;
cout<<" Please enter Celsius : " ;
cin>> celsius;
cout<< " The farrehheit is = "<<1.8*celsius+32;
}
Result :
Post a Comment
No comments:
Post a Comment