📜  c#代码示例中的奇数或偶数

📅  最后修改于: 2022-03-11 14:48:41.755000             🧑  作者: Mango

代码示例1
if(num %2 == 0){
  Console.WriteLine("Number is even")
}else{
  Console.WriteLine("Number is odd")
}