在Java中判斷一個數是奇數仍是偶數

int a =5;   if(a%2==1)System.out.println(a+"是奇數!");   else    System.out.println(a+"是偶數!");
相關文章
相關標籤/搜索