class Area
{
public static double circleArea (double r)
{
return Math.PI * r * r;
}
public static double squareArea (double side)
{
return side * side;
}
public static double rectArea (double width, double height)
{
return width * height;
}
public static double triArea (double base, double height1)
{
return 0.5 * base * height1;
}
{
BufferedReader in =
try
{
input = in.readLine ();
{
} return input;
}
{
}}
Java program to find area of geometrical figures using method.
Reviewed by
on
September 05, 2019
Rating:
No comments: