在Java中判断一个数是奇数仍是偶数

int a =5;   if(a%2==1)System.out.println(a+"是奇数!");   else    System.out.println(a+"是偶数!");
相关文章
相关标签/搜索