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 ? | 19 Yes | 5 No |
Post New Answer View All Answers
Explain how do you sort filenames in a directory?
What is the difference between the expression “++a” and “a++”?
What is #define?
What is the equivalent code of the following statement in WHILE LOOP format?
What is the use of a conditional inclusion statement in C?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Explain a pre-processor and its advantages.
Which is the memory area not included in C program? give the reason
Explain the properties of union.
simple program of graphics and their output display
What are the features of c languages?
What is bubble sort in c?
What is c system32 taskhostw exe?
What is static identifier?
What are the advantages of using Unions?