|
|
back to boardCommon BoardWhy "Runtime error"? people=2 m=0 stop=0 min_=int(float(input())*100) max_=int(float(input())*100) while stop!=1: for i in range (min_+1,max_): j=list(str(float((people*i)/10000))) while j[m]!='.': m+=1 if int(j[0])>0: try: if j[m+1]=='0'and j[m+2]=='0': print (people) stop=1 break except IndexError: if j[m+1]=='0': print (people) stop=1 break people+=1 |
|
|