//c=(f-32)*0.55;
//f=(f+32)*1.8;
#include <iostream>
#include <windows.h>
#include <sstream>
using namespace std;
int main()
{
top:
int a,b,c,d,f,n,m;
string mystr,mystr1,mystr2;
cout << "Choose option 1 for f to c, choose option 2 to c to f. ";
getline(cin,mystr);
stringstream(mystr) >> c;
if(c == 1)
{
cout << "Enter temperature in farenheit. ";
getline(cin,mystr1);
stringstream(mystr1) >> d;
d = (d-32)*0.55;
cout << "You temperature in celsius is " << d << endl;
}
if(c == 2)
{
cout << "Enter temperature in celsius. ";
getline(cin,mystr2);
stringstream(mystr2) >> a;
b=(a+32)*1.8;
cout << "Your temperature in farenheit is " << b << endl;
cout << "" << endl;
}
goto top;
}