"Access denied!" message which I can't figure it out why it is printing out while it is in else clause!
Mina Daoud wrote:Can you please check your condition and loop scope!
Behrouz Hosseini wrote:
Mina Daoud wrote:Can you please check your condition and loop scope!
Hi Mina,
I agree with you there is something wrong with my loop scope but where is it?! I tried to follow all rules!
Behrouz Hosseini wrote:re-prompting the user to enter the password despite accepting the password!
Behrouz Hosseini wrote:Thanks, I used the break to stop looping but still getting the Access denied message.should I replace the last print out message?
star chaser..
Gary Ba wrote:Try taking out the else statement outside the loop.
like..
for ...
{
do stuff
}
if password has been entered 3 times incorrectly,
print message.
Good luck,
Gary
star chaser..
Gary Ba wrote:You did not take out the else statement inside the loop.