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