pythagorean theorem code in c++