#include <iostream>
#include <string>
using namespace std;
int main()
{
int userInput;
string numberType;
cout << "Enter a number and I will Check to see if it is odd or even" << endl;
cin >> userInput;
if (userInput % 2 == 0)
{
string numberType = "Even";
}
else
{
string numberType = "Odd";
}
cout << "The number you input is " << numberType << endl;
return 0;
}
操作された文字列値を出力しようとしているのですが、最終行に出力された文字列が空白になってしまいますか?