Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

find area of trapezoid with sides only in java

double height = 0;
double area = 0;

height = Math.sqrt(Math.pow(side, 2) - Math.pow((bottom - top) / 2, 2));
area = ((top + bottom) / 2) * height;
 
PREVIOUS NEXT
Tagged: #find #area #trapezoid #sides #java
ADD COMMENT
Topic
Name
8+5 =