Which structure is best to use when the user has four chances to enter the correct information into a program?

an if statement

a while loop

a for loop

a random loop

a for loop