📜  arduino 偶数或奇数 - 任何代码示例

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

代码示例1
if ( (i % 2) == 0) { do_something(); }  //Number is even
if ( (i % 2) == 1) { do_something(); }  //Number is odd