Query About Looping

Is there any problem if i use for loop for all these problems??

@vibhu_keshav,
Yes you can use. No problem