The issue in your code is with the std::cin statement. You should not use >> followed by std::endl when reading input with std::cin. std::endl is used to insert a newline character and flush the output stream. When reading input, you should use >> without std::endl. Here's the corrected code:
#include <iostream>
int main() {
std::cout << "Welcome to Temperature Conversion!" << std::endl
<< "Please Select Your Conversion Type:" << std::endl
<< "Press 1 to convert temperature in Fahrenheit to Kelvin" << std::endl
<< "Press 2 to convert temperature in Kelvin to Celsius" << std::endl
<< "Press 3 to convert temperature in Fahrenheit to Celsius" << std::endl;
int temperature = 0;
std::cin >> temperature;
return 0;
}
With this change, your code should work as expected, allowing the user to input a number for the temperature conversion type.