Scanner sc= new Scanner (System.in); int x=1; do { if(x%2==0) System.out.println("请输出这个数"+x); x++; } while(x<=20);