Please tell the issue in this

line 11
n <= k has to be written instead of i <=k