do while instead of while, want loop to run at least once.
@ -32,9 +32,7 @@ int main() {
int input;
Menu();
cin >> input;
while (input != 4) {
do {
if (input == 1) {
cout << "Enter temperature in Celsius: ";
@ -55,6 +53,7 @@ int main() {
C = input;
cout << setprecision(2) << convertC2K << endl;
}
while (input != 4)
cout << "\nExiting...";
return(0);