this method is only going to work until base and height is given but if hypotenuse is given it will no =t work
If given the hypotenuse then
Hello @aviral989,
Yes, This method considers input as either base or perpendicular.
But, it would work for all cases.
If you’ll pass a hypotenuse then this code will consider it as base and there would be a triplet for that value also.
Hope, this would help.
Give a like, if you are satisfied.