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
Is exit(status) truly equivalent to returning the same status from main?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
write a proram to reverse the string using switch case?
write a program to print data of 5 five students with structures?
What is typeof in c?
Explain what is the difference between functions abs() and fabs()?
Explain what is dynamic data structure?
Why malloc is faster than calloc?
What is a void pointer? When is a void pointer used?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What are the types of data types and explain?
How many bytes are occupied by near, far and huge pointers (dos)?
Tell me when is a void pointer used?
Can you please explain the difference between exit() and _exit() function?
What is the difference between text and binary modes?