Advertisement
joseleonweb

Untitled

Aug 14th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. public class CalculRectangle {
  2.  
  3.   public static void main(String[] args) {
  4.     int costatGran = 7;
  5.     int costatPetit = 2;
  6.     int perimetre = costatGran*2 + costatPetit*2;
  7.     int area = costatGran*costatPetit;
  8.     System.out.println("Perímetre: " + perimetre);
  9.     System.out.println("Àrea: " + area);
  10.   }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement