Cpp
Cpp
Int main() {
Char choice;
Switch(choice) {
Case ‘1’:
cout << “Result: “ << temperature << “ Celsius = “ << convertedTemperature << “
Fahrenheit” << endl;
break;
case ‘2’:
convertedTemperature = (temperature – 32) * 5/9;
cout << “Result: “ << temperature << “ Fahrenheit = “ << convertedTemperature << “
Celsius” << endl;
break;
case ‘3’:
cout << “Result: “ << temperature << “ Celsius = “ << convertedTemperature << “
Kelvin” << endl;
break;
case ‘4’:
cout << “Result: “ << temperature << “ Kelvin = “ << convertedTemperature << “
Celsius” << endl;
break;
case ‘5’:
cout << “Result: “ << temperature << “ Fahrenheit = “ << convertedTemperature << “
Kelvin” << endl;
break;
case ‘6’:
cout << “Result: “ << temperature << “ Kelvin = “ << convertedTemperature << “
Fahrenheit” << endl;
break;
default:
break;
}
Return 0;