import java.util.Scanner;
public class moveTheTable{
public static void main(String[] args){
System.out.println("小孩搬桌子");
System.out.println("情书您的年龄和性别");
System.out.println("说明:表示男,表示女");
Scanner ac = new Scanner(System.in);
Scanner sc = new Scanner(System.in);
int age =ac.nextInt();
int g = sc.nextInt();
int gender = 1;
if (age > 7){
System.out.println("可以搬动桌子");
}else if (age > 5 && gender == 1 ){
System.out.println("可以搬动桌子");
}else{
System.out.println("不可以搬动桌子,你还太小");
}
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)