#include <iostream>
#include <stdlib.h>
using namespace std;
namespace myNum
{
int x = 105;
}
int main()
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{isFlag=false;
}
else
{ isFlag=true;
}if(isFlag)
{cout<<"x为奇数"<<endl;}
else
{cout<<"x为偶数"<<endl;}
return 0;}
#include <stdlib.h>
using namespace std;
namespace myNum
{
int x = 105;
}
int main()
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{isFlag=false;
}
else
{ isFlag=true;
}if(isFlag)
{cout<<"x为奇数"<<endl;}
else
{cout<<"x为偶数"<<endl;}
return 0;}