Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SquareCalcuclator {
- public static double rightTrinagle(double a) {
- return a * a * Math.sqrt(3) / 4;
- }
- public static double rightHexagon(double a) {
- return 6 * rightTrinagle(a);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement