转载于 : http://www.verejava.com/?id=16992610131518
import java.util.Scanner;public class Statement {public static void main(String[] args) {//1.条件语句Scanner in = new Scanner(System.in);System.out.println("请输入您的考试成绩...");int score = in.nextInt();if (score >= 90) {System.out.println("奖励一朵红花");} else if (score >= 60 && score < 90) {System.out.println("没有奖励,只有鼓励,革命尚为成功,同志继续努力");} else if (score < 60) {System.out.println("挨打");}}}
转载于 : http://www.verejava.com/?id=16992610131518