123456
int temp; char scale; if(std::cin >> temp >> scale) { std::cout << "Your temperature is in " << scale << " and has magnitude " << temp << std::endl; }