sahrourr 0 Newbie Poster

i have to do a program that takes to equations from the user and draw a graph for them and then get the intersection point and then find the optimal solution and my program draws the graph but it makes the intersection point in a wrong way and i don't know why. and i have attached my program in the thread. please help me