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
What is string concatenation in c?
Explain how can you be sure that a program follows the ansi c standard?
Explain what is a pragma?
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.
What is the use of ?: Operator?
what is event driven software and what is procedural driven software?
What is bss in c?
Write a progarm to find the length of string using switch case?
C language questions for civil engineering
What is wrong with this initialization?
Explain heap and queue.
What is the benefit of using an enum rather than a #define constant?
What is methods in c?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Explain how can I avoid the abort, retry, fail messages?