判断奇偶数的办法
摘要:一、常规取模法 int c = 8 ; if (c%2==0) { System.out.println(c+"为偶数"); }else { System.out.println(c+"为奇数"); } 二、使用位运算符 1
阅读全文
posted @ 2019-06-16 22:40
posted @ 2019-06-16 22:40
posted @ 2019-06-16 22:28