Conversion F to Celsius:-
#include <iostream>
using namespace std;
int main()
{
int
temp;
float
c;
cout<<"Enter
the temperature In Fahreheit"<<endl;
cin>>temp;
c=(temp-32)*5/9;
cout<<"Celsius
= "<<c<<endl;
if(c>50)
cout<<"It's
Sunny Day"<<endl;
else
{
if(c>30)
cout<<"It's
Warm Day"<<endl;
else
cout<<"It's
Pleasant Day"<<endl;
}
return
0;
}
Comments
Post a Comment