Comments

yash

Report

your ,mid point equation is wrong. It should be x1+x2/2, y1+y2/2. be careful before posting. you can fail a lot of people