Facing problem due to midpoint function

i didn’t get an output.i think there is an problem in my midpoint function.
sir, please send the midpoint function.

To find the midpoint, use the runner technique as taught in the lecture videos. Coding implementation has also been done there. Please refer and follow that.