This is the solution of this problem in python: k=10000Password=2002for i in range(1,k): P=int(input()) if(P!=Password): print("Senha Invalida") else: print("Acesso Permitido") break
No comments