Tuesday, February 18

Finding Area of a Circle in Given Radius Using Java



Hi ALL,

Here I wrote a program for Finding Area of a Circle in Given Radius Using Java.


/**
 *
 * @author Balamurgan M
 */
public class area1 {
    public static void main(String arg[]){
        double radius;
        double area;
        System.out.println(" Enter the size of the radius: \t ");
        Scanner in=new Scanner(System.in);
        radius=in.nextDouble();
        area=radius*radius*3.14;
        System.out.println("The area of the Circle is "+area +" the radius of "
                + "circle is " +radius);
    }
}

No comments:

Post a Comment

Backup files to google drive using PHP coding

 Dear All, To backup files to Google Drive using PHP coding, you can use the Google Drive API and the Google Client Library for PHP. Here...