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
Can math operations be performed on a void pointer?
write a program to print largest number of each row of a 2D array
Describe static function with its usage?
can any one provide me the notes of data structure for ignou cs-62 paper
i have a written test for microland please give me test pattern
how to find anagram without using string functions using only loops in c programming
What does node * mean?
What is a list in c?
which is an algorithm for sorting in a growing Lexicographic order
what value is returned to operating system after program execution?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
plz let me know how to become a telecom protocol tester. thank you.
What is #pragma statements?
What is a pointer in c?
How to write a code for reverse of string without using string functions?