Skip to content

Commit 5aefee1

Browse files
authored
Add surface area method for square-based pyramid
1 parent ffa7d27 commit 5aefee1

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ public static double surfaceAreaPyramid(final double sideLength, final double sl
209209
double lateralSurfaceArea = 2 * sideLength * slantHeight;
210210
return baseArea + lateralSurfaceArea;
211211
}
212-
212+
}

0 commit comments

Comments
 (0)