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