Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is string concatenation in c?

1048


Explain how can you be sure that a program follows the ansi c standard?

1421


Explain what is a pragma?

1011


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

2064


What is the use of ?: Operator?

1095


what is event driven software and what is procedural driven software?

2518


What is bss in c?

1058


Write a progarm to find the length of string using switch case?

2041


C language questions for civil engineering

1672


What is wrong with this initialization?

971


Explain heap and queue.

1031


What is the benefit of using an enum rather than a #define constant?

1194


What is methods in c?

1038


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

3296


Explain how can I avoid the abort, retry, fail messages?

1011