第2个回答 2011-05-12
string str = "14414131321151121";
int i = new int();
i = System.Int32.Parse(str.Substring(6, 1));
Console.Write(i.ToString()+" 是 :");
if ((i % 2).Equals(0))
{
Console.Write("偶数");
}
else
{
Console.Write("奇数");
}
System.Console.ReadLine();