Loop explanation

why cant we use for loop here ?

Hey sarthak,
You can use any loop with which you are comfortable.
Please let me know if there is any other doubt.