import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("输入");
char x = input.nextLine().charAt(0);
if ((int) x % 2 == 0) {
System.out.print("NO");
}
else {
System.out.print("YES");
}
input.close();
}
}
java 实现奇偶ASCII值判定
最新推荐文章于 2024-11-11 00:03:55 发布