Loop will run n+1 times but the point which comes here is that successfully it runs n times and one last for terminating condition when i reaches n...so its said how many times loop runs simple answer n+1...you can also say successfully it ran n times and 1 time it was unsuccessfull..!