10 comments:

  1. import java.util.Scanner;

    class Test{

    public static void main(String ar[])
    {

    float a,area;
    Scanner sc=new Scanner(System.in);
    System.out.println("Enter Radius to find Area of the Circle");
    a=sc.nextFloat();
    area=22*a*a/7;
    System.out.println("Area is "+area);


    }
    }

    ReplyDelete
  2. //program to find area of circle
    import java.util.Scanner;
    class Area
    {
    public static void main(String Args[])
    { double r;
    double ar;
    Scanner scan=new Scanner(System.in);
    System.out.println("enter the radius of circle");
    r=scan.nextDouble();

    ar=3.14*r*r;
    System.out.println("area of circle is"+ar);
    }}

    ReplyDelete
  3. import java.util.Scanner;

    class areaCircle
    {
    public static void main(String ar[])
    { double r;
    double Total;
    Scanner sc=new Scanner(System.in);
    r=sc.nextDouble();
    Total=3.14*r*r;
    System.out.println("area of circle="+Total);
    }
    }

    ReplyDelete
  4. import java.util.Scanner;

    class Test
    {

    public static void main(String ar[])
    {
    double radius,area;
    System.out.print("Enter the radius: ");
    Scanner o= new Scanner(System.in);
    radius=o.nextDouble();
    area=3.141*radius*radius;
    System.out.println("Area is: "+area);
    }

    }

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. import java.util.Scanner;

    class area

    {
    public static void main(String ar[])
    {
    Scanner objscan = new Scanner(System.in);
    System.out.println("Enter the radius of the circle");
    double radius = objscan.nextDouble();
    double area = (3.14 * radius*radius);
    System.out.print("the area of the circle is : " );
    System.out.println(area);

    }



    }

    ReplyDelete
  7. import java.util.Scanner;
    public class Circle
    {
    public static void main(String args[])
    {
    float c,r,pi=3.14f;
    System.out.println("enter number");
    Scanner sc=new Scanner(System.in);
    r=sc.nextFloat();
    c=r*r*pi;
    System.out.println(c);
    }
    }

    ReplyDelete
  8. import java.util.Scanner;
    class A{
    public static void main(String ar[]){
    Scanner obj=new Scanner(System.in);
    int radius;
    double area;
    System.out.println("enetr the value of radius");
    radius=obj.nextInt();
    area=3.14*(radius)*(radius);
    System.out.println("area of the circle is"+area);
    }
    }

    ReplyDelete
  9. class Circle{
    public static void main(String ar[]){
    Double a;
    Double r=Double.parseDouble(ar[0]);
    a=3.14*r*r;
    System.out.printf("area="+a);
    }
    }

    ReplyDelete


  10. import java.util.Scanner;

    class Circle{

    public static void main(String ar[]){

    double r,area=0;

    Scanner scan=new Scanner(System.in);

    System.out.println("Enter value of r");
    r=scan.nextInt();

    area=3.14*r*r;
    System.out.println("Area="+area);

    }

    }

    ReplyDelete