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