/** Renvoit le carre du sinus d'un entier prix comme pramètre @author J. DURAND-LOSE, IUP 2, IPI. */ public class PiSur { public static void main ( String [] arg ) { int n = Integer.parseInt ( arg [ 0 ] ) ; double s = Math.sin ( Math.PI/n); System.out.println ( "n = "+n); System.out.println ( "Pi/n = "+(Math.PI/n)); System.out.println ( "s = " + s ); } }