0
How would I make a code with python to solve "a^2 +b^2 = c^2"? assuming that's the right equation.
Math
3 Respuestas
+ 4
You can define a,b,c as variables and assign inputs to them like int(input()).
Also you can use if-else statement to prove whether they are valid or not
if a**2+b**2==c**2:
print("yes")
else:
print("no")
+ 1
Something like that: https://en.m.wikipedia.org/wiki/Pythagorean_triple#Generating_a_triple
0
amanda
print((a * a + b * b) == c * c)