Programmed Math/Pythagorean theorem

The pythagorean (pi-THA-gor-in) theorem is a formula which explains the relationship between sides of a right triangle (a triangle w/ one 90 degree angle)

Formula:

$$a^2+b^2=c^2$$ where a and b are the legs and c is the hypoteneuse.

There is also a thing called a Pythagorean Triple, where in $$a^2+b^2=c^2$$ a and b are equal to c.

Such an example is with $$3^2+4^2=c^2$$ Where $$3^2 = 9$$ and $$4^2 = 16, 16+9 = 5^2$$ which is 25