Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cercle
- {
- public static double perimetre(double rayon){
- return 2*Math.PI*rayon;
- }
- public static void main(String[] args){
- System.out.printf("%f\n", perimetre(4.7));
- System.out.printf("%f\n", perimetre(2));
- System.out.printf("%f\n", perimetre(3.45));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement