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
Is null valid for pointers to functions?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What are 3 types of structures?
Explain what is wrong in this statement?
How do you declare a variable that will hold string values?
what does static variable mean?
How does sizeof know array size?
Why header files are used?
I came across some code that puts a (void) cast before each call to printf. Why?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Who developed c language and when?
what do you mean by enumeration constant?
What is the easiest sorting method to use?
What is the main difference between calloc () and malloc ()?
How do you list files in a directory?