a 'c' program to tell that the set of three coordinates lie
on a same line
Answer Posted / chetan kole
m1=(y2-y1)/(x2-x1);
m2=(y3-y2)/(x3-x2);
if(m1==m2)
{
printf("3 points are on same line")
}
else
{
printf("not on same line");
}
Is This Answer Correct ? | 10 Yes | 5 No |
Post New Answer View All Answers
What is 'bus error'?
Define the scope of static variables.
What is #line used for?
How many types of operator or there in c?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Hi can anyone tell what is a start up code?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Explain the use of 'auto' keyword
What is the purpose of sprintf() function?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
What is #include called?
What is dynamic variable in c?
Explain union.
How can I make sure that my program is the only one accessing a file?
What are header files in c?