Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package spring18;
- import java.util.Scanner;
- public class Rectangle {
- public static void main(String[] args) {
- int A,P;
- Scanner sc=new Scanner(System.in);
- System.out.println("Please Give Your Squre Size:");
- int w = sc.nextInt();
- int l = sc.nextInt();
- A=l*w;
- System.out.println("Area Formula");
- System.out.println(A);
- System.out.println("Perimeter Formula");
- P =2*(l+w);
- System.out.println(P);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement