// Programme test2.java // javac test2.java; java test2java import java.io.*; import java.lang.Math; class test2java { public static void main(String[] args) throws IOException { int B = 1, I, C; float R; while (B > 0) { System.out.print("Borne:? "); BufferedReader bfn = new BufferedReader(new InputStreamReader(System.in)); B = Integer.parseInt(bfn.readLine()); I = 1; while (I <= B) { C = (int) Math.pow((double) I, 2); R = (float) Math.sqrt((double) I); System.out.println("I= " + I + " I^2= " + C + " I^1/2= " + R); I++; } } System.out.println("Fin du programme test2.java"); } }