using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
char flog = 't';
while(flog=='t'){
Console.WriteLine("请输入一个整数!");
int num = int.Parse(Console.ReadLine());
if (num % 2 == 0)
{
Console.WriteLine("{0}是偶数。",num);
}
else
{
Console.WriteLine("{0}是奇数。",num);
}
Console.WriteLine("请输入q或其他字符!");
char Character =(char) Console.Read();
if (Character == 'q')
{
flog = 'f';
}
else
{
flog = 't';
}
}
}
}
}