Advertisement
Hristo_Dimitrov10

18327 rectangle

Oct 19th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. package rectangle;
  2.  
  3. public class rectangle.java {
  4.     public static void main(String[] args) {
  5.         double a = 6;
  6.         double b = 5;
  7.         System.out.println( " P:" + (a+b)*2);
  8.         System.out.println("S:"   + a*b);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement