The program below is able to calculate the area of a circle inscribed in a Square.
<h3>What is a program?</h3>
A program is a set of instructions given to the computer with specific end results in mind.
<u>Sample program in Java
</u>// Java Program to find the area of
// an inscribed circle in a square.
import java.io.*;
class GFG {
static double PI = 3.14;
// Function to find area of an
// inscribed circle in a square.
static double areaOfInscribedCircle(float a)
{
return ( PI / 4 ) * a * a;
}
// Driver code
public static void main (String[] args)
{
float a = 8;
System.out.println("Area of an inscribed"
+ " circle: " + areaOfInscribedCircle(a));
}
}
Learn more about programs at :
brainly.com/question/1538272
#SPJ1