In this function void print prime(int N){
for(i=2; i<=N;i++)
if we give the ending condition i++ while we are taking i<=N then at the last update For [i=N ] value we will get updated N+1 prime no. which is not possible practically to print.
please explain this logic to me
thankyou!!