Infosys interview question

How do you iterate through a program?