To print the pythagorean triplets in the increasing order if they exist else print -1

if n is odd, the formul will be
a=(n * n - 1) / 2 b= (n * n + 1) / 2)

n may be long
so change the n to long
hope this will help u
pls rate my work so that i can improve myself