题解 | #判断整数奇偶性#
判断整数奇偶性
https://www.nowcoder.com/practice/a8b018667e274af29b5f76a6673450fc
using System; public class Program { public static void Main() { int num; while ((int.TryParse(System.Console.ReadLine(),out num))) { if ((num%2) == 1) System.Console.WriteLine("Odd"); else System.Console.WriteLine("Even"); } } }