Difficulties in generating a loop using sequence mode

Also, please see more about loops. This might help you