joseleonweb

Untitled

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