Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner in = new Scanner(System.in);
- System.out.println("Introduzir Comprimento");
- double c = in.nextDouble();
- System.out.println("Introduzir Largura");
- double l = in.nextDouble();
- double area = c*l;
- System.out.println("Area do retângulo" +area);
- double perimetro = (2*c)+(2*l);
- System.out.println("Perimetro do retângulo" +perimetro);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement