Java Program to Find Area of Circumcircle of an Equilateral Triangle
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
// Static initialization of the side of the triangle
int side = 10;
System.out.println("The area of the circumcircle inside the triangle is: "+areaOfCircle(side));
}
// Function to find out the area of the circumcircle
static double areaOfCircle(int side)
{
double pi = 3.14;
return (side*side*pi)/3;
}
}
Output:
The area of the circumcircle inside the triangle is: 104.66666666666667
