#include <iostream>
using namespace std;
int main(void) {
int celsius;
int fahrenheit;
int choice;
int final;
cout << "Do you want to convert" << endl;
cout << "1. Fahrenheit" << endl;
cout << "2. Celsius" << endl;
cin >> choice;
system("pause");
if (choice == 1) {
system("cls");
cout << "Please enter in the degrees fahrenheit: " << endl;
cin >> fahrenheit;
final = fahrenheit / 2.66666667;
}
else if (choice == 2) {
system("cls");
cout << "Please enter in the degrees celcius: " << endl;
cin >> celsius;
final = fahrenheit * 2.66666667;
}
if (final) {
if (choice == 1) {
cout << fahrenheit << " degrees fahrenheit is " << final << " degrees celsius";
cin.get();
}
else if (choice == 1) {
cout << celsius << " degrees celsius is " << final << " degrees fahrenheit";
cin.get();
}
}
else
{
cout << "I am sorry but you forgot to enter degrees" << endl;
cout << "fahrenheit or celsius, this requires the " << endl;
cout << "program to halt, sorry and goodbye!";
cin.get();
}
}