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
the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above
Explain continue keyword in c
Can two or more operators such as and be combined in a single line of program code?
What are external variables in c?
What is c programming structure?
What is a shell structure examples?
Explain how can I avoid the abort, retry, fail messages?
What does emoji p mean?
How can you increase the size of a dynamically allocated array?
how many errors in c explain deply
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is logical error?
What are comments and how do you insert it in a C program?
What is a built-in function in C?
What are predefined functions in c?