import java.util.Scanner; class P12_exampleContinue { public static void main(String[] args) { Scanner scannerObj = new Scanner(System.in); // read in 10 numbers // and handle only the positive ones int i,x; for (i=0; i<10; i++) { x=scannerObj.nextInt(); if (x<0) { System.out.println("Wrong\n"); continue; } // processing of x System.out.printf("Square root of %d is %.2f", x, Math.sqrt(x)); System.out.println();System.out.println(); } scannerObj.close(); } }