Multiple outputs of same input

Since we shall be given either a base or a height, we will fix the other value as 1 and thereby calculate the hypotenuse.

Input: 3

Output: 1 10

hello @girishgargcool
one constraint u missed is that all sides should be integer.

here in ur example if input is three then other sides should be 4 and 5.
because
3^2+4^2=5^2.

approach for this problem->

code->
image

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.