static void Main(string[] args)
{
Console.WriteLine(“Enter an integer”);
int myInt = Convert.ToInt32(Console.ReadLine());
//提示并接受一个整数值,并将string字符串类型转换成int类型,赋给myInt。
Console.WriteLine(“Integer less than 10? {0}”, myInt < 10);
//判断myInt是否小于10
Console.WriteLine(“Integer between 0 and 5? {0}”, (0<=myInt )&&(myInt <5));
//判断myInt是否在0到5之间
Console.WriteLine(“Bitwise AND of integer and 10 ={0}”,myInt &10);
//对myInt的值进行按位AND操作。
Console.ReadKey();
}