Doubt in 1 step only

why we take int no and in for loop for stoping criteria use i<n

hello @parasjain7086

we will read number one by one and store it in no variable.

we want to run our loop n times. so for that we are iterating from i=0 to i=n-1.
in total we will itwerate n times

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.