Advertisement
shawonrog

sQURE

Jan 29th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package spring18;
  2. import java.util.Scanner;
  3.  
  4.  
  5. public class Squre {
  6.  
  7. public static void main(String[] args) {
  8. int A,P;
  9. Scanner sc=new Scanner(System.in);
  10. System.out.println("Please Give Your Squre Size:");
  11. int s = sc.nextInt();
  12. A=s*s;
  13. System.out.println("Area Formula");
  14. System.out.println(A);
  15. System.out.println("Perimeter Formula");
  16. P=4*s;
  17. System.out.println(P);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement