|
|
@ -2,6 +2,15 @@ |
|
|
|
|
|
|
|
using namespace std; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Menu(){ |
|
|
|
cout << "Simple temperature converter \n"; |
|
|
|
cout << "Conversion options \n [1]C to F \n [2]F to C \n [3]Quit" << endl; |
|
|
|
cout << "Select option [1-3]: "; |
|
|
|
} |
|
|
|
|
|
|
|
double C, F; |
|
|
|
|
|
|
|
double convertC(double C, double F){ |
|
|
@ -16,10 +25,7 @@ double convertF(double C, double F){ |
|
|
|
|
|
|
|
int main() { |
|
|
|
int input; |
|
|
|
|
|
|
|
cout << "Simple temperature converter \n"; |
|
|
|
cout << "Conversion options \n [1]C to F \n [2]F to C \n [3]Quit" << endl; |
|
|
|
cout << "Select option [1-3]: "; |
|
|
|
Menu(); |
|
|
|
cin >> input; |
|
|
|
|
|
|
|
if (input == 3) { |
|
|
|