Log in to save your progress.
<< Back to problems
OBS! Fönstret är för smalt för att använda pythonlabbet.se. Använd en enhet med tangentbord!

Is the triangle right-angled?

Prerequisites: Basic course part I

For right-angled triangles, Pythagoras' theorem states that $$a^2+b^2=c^2$$ where a and b are legs and c is the hypotenuse.

Pythagoras' theorem applies if and only if the triangle is right-angled, which means that if the equation is not met, the triangle is not right-angled.

Your program should take three inputs, a, b and c, in that order. The program only needs to work for integers. Print Yes if the triangle is right-angled and No if it is not.

Example input

3
4
5

Example output

Yes

Example input

1
2
3

Example output

No

Login to save your progress and your code.

Create

Write your code here.

-- Output from your program will be here --