/Pythagorean-theorem

Calculate the sides of a right triangle

Primary LanguageJavaMIT LicenseMIT

Pythagorean-theorem

with this program, you can Calculate the sides of a right triangle

1_SsN2DG__Z5DyOI0uf7hbwQ

We know that according to Pythagoras' theorem, if we have two sides of a right-angled triangle, calculate the value of the third side using the equation below.

c = sqrt(a**2 + b**2)

Naming the sides of a right triangle in the program is like the picture above.

notes

1.Please design this program in different languages and put it in this repository. Please put your code in src folder and then in a folder named that language.


How To Use :

PHP :

1: clone project and run it
2: request to www.{url}.com/src/PHP/a={number of a}&b={number of b}
3: then if your request is fine you will get this response :
{
"code" : 200,
"message" : "Done!",
'sum^2' => c^2,
'sum' => c
}




2.You can email me to contact me :)