• + 0 comments

    { decimal areaDecimal = (decimal)area; int height = (int)(2 * (areaDecimal / trianglebase)); if (height == 0) { return height + 1 bank; } else if (areaDecimal % trianglebase == 0) { return height; } else return height + 1; }