Computer Science, asked by tanmaygeocare3460, 1 year ago

Obtain any radius of circle and calculate their area in computer

Answers

Answered by Anonymous
0

Java code :

// Program to find area of a circle when radius given

import java.util.Scanner;

public class Area

{

public static void main (String raha[])

{

Scanner in = new Scanner(System.in);

double radius, area = 0;

System.out.println("Enter the radius of circle ");

radius = in.nextDouble();

area = (22/7)*(radius*radius);

System.out.println("The radius of circle : " + radius);

System.out.println("Area of circle : "+area);

}

}

Similar questions