import java.util.Scanner;
public class IfElse嵌套 {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print("请输入成绩");
double score = input.nextDouble();
if(score < 10){
System.out.println("恭喜你进入决赛");
System.out.println("请输入性别: ");
String sex = input.next();
if("男".equals(sex)){
System.out.println("进入男子组决赛");
}else if("女".equals(sex)){
System.out.println("进入女子组决赛");
}else{
System.out.println("未进入决赛");
}