Possible Duplicate:
What loop is faster, while or for
we can use for loop as well as while loops for same purpose which is faster
for eg: i want to loop an item 1000000000 times shall i use for loop or while loop?
it is iteration then why do we need both in programing only one is needed?
since both loops are working same then why do we need both?