A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2
For example, 32 + 4
In C the ^ operator computes bitwise xor, not the power. Use x*x instead.
x*x