Skip to content

Added surface area calculation for pyramid - #7706

Open
NathanHughes55 wants to merge 1 commit into
TheAlgorithms:masterfrom
NathanHughes55:new_branch
Open

NathanHughes55 wants to merge 1 commit into
TheAlgorithms:masterfrom
NathanHughes55:new_branch

Conversation

@NathanHughes55

Copy link
Copy Markdown

Title: Added surface area calculation for pyramid

Description:
This PR adds the surfaceAreaPyramid method to Area.java to calculate the surface area of a square-based pyramid given its side length and slant height. It includes input validation checks to ensure parameters are positive values and throws an IllegalArgumentException otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant