#16274: 哪裡錯


ian4201569 (Ian)


小的第一次用,初學者,哪裡錯?

while 1:

 a=int(input())

 b=int(input())

 c=int(input())

 d=int(input())

 e=b-a

 f=c-b

 h=b/a

 i=c/b

 if(e==f):

   g=d+e

   print(a,b,c,d,g)

 elif(h==i):

   j=d*i

   print(a,b,c,d,j)

 else:

   print()

#16281: Re:哪裡錯


314159265358979323846264338327 ... (少年π)


小的第一次用,初學者,哪裡錯?

while 1:

 a=int(input())

 b=int(input())

 c=int(input())

 d=int(input())

 e=b-a

 f=c-b

 h=b/a

 i=c/b

 if(e==f):

   g=d+e

   print(a,b,c,d,g)

 elif(h==i):

   j=d*i

   print(a,b,c,d,j)

 else:

   print()

whlle 1: 是無窮迴圈吧,程式無法停止