include <stdio.h>
double k,b;
void check(float x1,float y1,float x2,float y2){
if(x1==x2||y1==y2)
{
printf("ERR! \n");
return;
}
k=(y2-y1)*1.0/(x2-x1);
b = (y1*x2-y2*x1)*1.0/(x2-x1);
printf("k:%.4f,b:%.4f\n",k,b);
}
int main()
{
/* Write C code in this online editor and run it. */
printf("Hello, World! \n");
check(4,0,20,100);
return 0;
}