Skip to content

Commit c6dbcef

Browse files
authored
compiler error fixed
1 parent e99871f commit c6dbcef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/thealgorithms/maths/Volume.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,5 @@ public static double volumeFrustumOfCone(double r1, double r2, double height) {
113113
*/
114114
public static double volumeFrustumOfPyramid(double upperBaseArea, double lowerBaseArea, double height) {
115115
return (upperBaseArea + lowerBaseArea + Math.sqrt(upperBaseArea * lowerBaseArea)) * height / 3;
116+
}
116117
}

0 commit comments

Comments
 (0)