package Oct2016; public class Ques1027 { public static void main(String[] args) {
System.out.println(1%2==1?"奇数":"偶数");
System.out.println(2%2==1?"奇数":"偶数");
System.out.println(0%2==1?"奇数":"偶数");
System.out.println(-1%2==1?"奇数":"偶数");
System.out.println(-2%2==1?"奇数":"偶数");
}
}
今日问题:
请问主程序输出结果是?(点击以下“【Java每日一题】20161027”查看20161026问题解析)
题目原发布于公众号、简书:【Java每日一题】20161027,【Java每日一题】20161027
每日一题最新将在公众号发布,欢迎订阅,交流进步