d064: ㄑㄧˊ 數?
題目:http://zerojudge.tw/ShowProblem?problemid=d064
程式碼:
程式碼:
import java.util.Scanner;
public class d064 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int i = sc.nextInt();//輸入數字
if(i%2==0){
System.out.println("Even");
}else{
System.out.println("Odd");
}
}
}
}

留言
張貼留言