Linear search i would never become equal to n, hence won't show output not present

I think for the given for loop I would never take value I=n. hence if statement if(i==n) would always give false and the statement key not present wouldn’t execute