Pythagoras triplet

if number given is even what factors do we have to use to get the closest triplets

Hi @utkarsh2504,
refer to dis code for more help.


Hope dis helps

what does the condition in else if mean ?

if the number given is even the closest factors are

> (x*x)/4 - 1 and (x*x)/4 + 1

, if x is even.