@vartul agnihotri,
for loops are used when it is known ahead of time how many times to do the loop. The situation presented in the problem has an unknown number of entries, and so a for loop is not a good choice.
A while loop is the thing to use. while the user hasn't indicated they are done, take another input and add it to a collection.