A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2
For example, 32 + 4
I'm afraid ^ doesn't do what you think it does in C. Your best bet is to use a*a for integer squares.
^
a*a