?? odddecider4.java
字號(hào):
import java.util.Scanner;
public class OddDecider4 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int input = 0;
int replay = 0;
do {
System.out.print("輸入整數(shù)值:");
input = scanner.nextInt();
System.out.println("輸入數(shù)為奇數(shù)?" +
((input%2 == 1) ? 'Y': 'N'));
System.out.print("繼續(xù)(1:繼續(xù) 0:結(jié)束)?");
replay = scanner.nextInt();
} while(replay == 1);
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -