For which programming task would you use a for loop?

Computing the average of a list of integers of unknown length
Counting the vowels in a document of unknown length
Generating a list of the anagrams in a word
Printing a specified number of integers in a list