package areas.shapes;

public class Triangle{
    //Method to find the area oof a triangle
    public double areat(int b, int h){
        int base = b, height = h;
        double area = 0.5 * base * height;
        return area;
        /*The return type that has been predefined at the top there
* Ever may or may not have this. If return type is absent use "void"
* keyword to declare the methods
* */
    }
}