Program to calculate the perimeter and area of circle JAVA


Write a Program to calculate the perimeter and area of circle.




import java.util.*;
class periarea
{
    public static void main(String args[])
    {
         Scanner sc = new Scanner(System.in);
         System.out.println("Enter radius");
         double r = sc.nextDouble();
         System.out.println("Area is =" +(3.14*r*r));
         System.out.println("Perimeter is =" +(2*3.14*r));
    }
}



     
                     

Contact Us

REACH US

SERVICES

  • CODING
  • ON-LINE PREPARATION
  • JAVA & PYTHON

ADDRESS

B-54, Krishna Bhawan, Parag Narain Road, Near Butler Palace Colony Lucknow
Contact:+ 919839520987
Email:info@alexsir.com