Search:

Type: Posts; User: laserlight

Search: Search took 0.42 seconds.

  1. 0 >= 5 is false, so the loop does not even run...

    0 >= 5 is false, so the loop does not even run for a single iteration.
  2. Enter the incorrect password 5 times and you will...

    Enter the incorrect password 5 times and you will find that it does not print "Sorry 5 Wrong attempts". The reason is that you wrote if (a=0) instead of if (a == 0).


    Notice that in this working...
  3. Compare your for loop version with your while...

    Compare your for loop version with your while loop version and you should discover the mistake. If you still cannot see it, then show us the version with the while loop that works. If you have not...
Results 1 to 3 of 3