Advertisement
DanikYakush

Task25

Jul 6th, 2022
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. class SquareCalcuclator {
  2.     public static double rightTrinagle(double a) {
  3.         return a * a * Math.sqrt(3) / 4;
  4.     }
  5.  
  6.     public static double rightHexagon(double a) {
  7.         return 6 * rightTrinagle(a);
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement