Query regarding the question

how can we be sure that we are given base or height and not the hypotenuse?

@Senjuti256
I think it is clearly mentioned in the question that given input is either base or height of the triangle. Can you please share me the link of question at hackerblocks?

how to solve if we are given the hypotenuse?