Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CalculRectangle {
- public static void main(String[] args) {
- int costatGran = 7;
- int costatPetit = 2;
- int perimetre = costatGran*2 + costatPetit*2;
- int area = costatGran*costatPetit;
- System.out.println("Perímetre: " + perimetre);
- System.out.println("Àrea: " + area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement