I'm learning to code in python using Project Euler. I've written the following program, which I think should work:
a=1
b=1
c=1
while(a<=998):
while(b<=998):
c=(1000-(a+b)
if (a*a+b*b==c*c):
print a,b,c
b=b+1
a=a+1
However, when I actually run the program from the terminal, the interpreter says that line 9
if (a*a+b*b==c*c):
is invalid. Can anyone tell me why this is?
thanks