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
Explain what is the difference between null and nul?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Is there any demerits of using pointer?
Why do we need arrays in c?
Is it fine to write void main () or main () in c?
What are type modifiers in c?
What is a pragma?
In C programming, what command or code can be used to determine if a number of odd or even?
Why c is called a middle level language?
What is the difference between the expression “++a” and “a++”?
What does the characters “r” and “w” mean when writing programs that will make use of files?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
What is a macro, and explain how do you use it?
Explain the difference between the local variable and global variable in c?
Differentiate between functions getch() and getche().