java小练习:泳池迷宫

112 阅读1分钟

java小练习:泳池迷宫 输出: %java pool a noise annoys an oyster

题目: class pool{ public static void main(String[] args) { int x = 0;

	while(____){
	    __________________________
		if ( ____){
			__________________________
		}
	        __________________________		
		if (____){
			 __________________________
			____
		}
		if (x == 1){
			 __________________________
		}
		if (____ ){
			 __________________________
		}			
	System.out.println(" ");
    ____
    }
}

}

选项: System.out.print(" "); System.out.print("a"); System.out.print("n "); System.out.print("an");

System.out.print("noys"); System.out.print("oise"); System.out.print(" oyster"); System.out.print("annoys"); System.out.print("noise");

x>0 x<1 x>1 x<3 x<4

x=x+1; x=x+2; x=x-1; x=x-2;

答案见下期