Which of the following should a developer use to ensure a block of code executes a defined number of times?
A. for loop
B. while loop
C. if … else statement
D. switch statement
A. for loop
B. while loop
C. if … else statement
D. switch statement