Code not working

in line 27 i<=end
and clearly read line 44 and 48
u will find the error