public static void MYSTERY(int n) {
if (n==0)
System.out.println("hello");
if(n==1)
System.out.println("world");
if(n>=2){
MYSTERY(n-2);
MYSTERY(n-2);
System.out.println("hello");
System.out.println("world");
}
}
关于n和输出hello的个数和world个数的关系