int areaRightTriangle(int b, int h)
      {
        int area = (b*h)/2;
        return area;
      }

      Cpp language logo
      Area of right triangle

      Java Recipes

      The function returns the area of the right triangle with base b and height h.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.