In setting up a website's backend server, the developer wants to run a specific task 10 times. Which structure would be most appropriate to use in this scenario?
An if
statement that checks if the task has been done 10 times
A for
loop that iterates 10 times
A while
loop that continues until an external condition changes
A do-while
loop that executes at least once and then checks a condition