Pulsars
0 %
Log inSign up

for or while?

Open answer

You want to write a program that asks the user for a password, again and again, until they type the correct password (you don't know in advance how many attempts it will take). Which loop should you use, for or while, and why?