int choice;
float temp,ctemp;
cout<<"1.Fahrenheit to Celsius";
cout<<"2.Celsius to Fahrenheit";
cout<<"Enter ur choice:";
cin>>choice;
if(choice==1)
{
cout<<"Enter the temperature in Fahrenheit:"
cin>>temp;
ctemp=(temp-32)/1.8;
cout<<"Celsius is:"<<ctemp;
}
else
{
cout<<"Enter the temperature in celsius:"
cin>>temp;
ctemp=1.8*temp+32;
cout<<"Fahrenheit is:"<<ctemp;
}