How can I find the general form equation of a line from two points?

前端 未结 5 2082
野的像风
野的像风 2021-02-02 09:48

Given the input:

double x1,y1,x2,y2;

How can I find the general form equation (double a,b,c where ax + b

5条回答
  •  忘了有多久
    2021-02-02 10:21

    #include 
    main()
    {
        int a,b,c;
        char x,y;
        a=5;
        b=10;
        c=15;
        x=2;
        y=3;
        printf("the equation of line is %dx+%dy=%d" ,a,b,c);
    }
    

提交回复
热议问题