Skip to content

Commit c40eafa

Browse files
committed
Added test + surface area calculation for pyramid
1 parent 4989924 commit c40eafa

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/thealgorithms/maths

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ public static double surfaceAreaPyramid(final double sideLength, final double sl
210210
double baseArea = sideLength * sideLength;
211211
double lateralSurfaceArea = 2 * sideLength * slantHeight;
212212
return baseArea + lateralSurfaceArea;
213-
213+
214214
}
215+
//test
215216

216217
}

0 commit comments

Comments
 (0)