Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. class Cercle
  2. {
  3.     public static double perimetre(double rayon){
  4.         return 2*Math.PI*rayon;
  5.     }
  6.    
  7.     public static void main(String[] args){
  8.         System.out.printf("%f\n", perimetre(4.7));
  9.         System.out.printf("%f\n", perimetre(2));
  10.         System.out.printf("%f\n", perimetre(3.45));
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement