Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package rectangle;
- public class rectangle.java {
- public static void main(String[] args) {
- double a = 6;
- double b = 5;
- System.out.println( " P:" + (a+b)*2);
- System.out.println("S:" + a*b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement