Skip to content

Commit 4989924

Browse files
committed
Added surface area calculation for pyramid
1 parent d2f6c19 commit 4989924

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ 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+
213214
}
214215

215216
}

0 commit comments

Comments
 (0)