Advertisement
DanikYakush

Task25

Jul 6th, 2022
887
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement