diff --git a/converter.cpp b/converter.cpp index d1e98c2..a4b92b9 100644 --- a/converter.cpp +++ b/converter.cpp @@ -18,11 +18,6 @@ double convertC2K(double C, double K) { return(K); } -double convertF2K(double F, double K) { - K = (((F - 32) * 5/9 ) + 273.25); - return(K); -} - double convertC(double C, double F) { // <- converts to Celsius C = (F - 32) / 1.8; return(C); @@ -38,7 +33,7 @@ int main() { Menu(); cin >> input; - while (input != 5) { + while (input != 4) { if (input == 1) { cout << "Enter temperature in Celsius: "; @@ -54,12 +49,6 @@ int main() { cout << setprecision(2) << convertC(C, F) << endl; break; } - else if (input == 3) { - cout << "Enter temperature in Fahrenheit: "; - cin >> input; - F = input; - cout << setprecision(2) << convertF2K << endl; - } else if (input == 4) { cout << "Enter temperature in Celsius: "; cin >> input;