init users: array of string = {"Fred","John","Steve","Ann","Mary"} passwords: array of string = {"access","dog","12345","kids","qwerty"} print "Enter user name" usrname:string = stdin.read_line() print "Enter password" pwd:string = stdin.read_line() error:int = 0 cont:int = 0 for var user in users if (user!=usrname) error++ if error == (users.length) print "No reconocido. Acceso denegado." if (user==usrname) position:int = cont if pwd == passwords[position] print "OK: Acceso Concedido." else print "Password incorrecta." cont++