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

Can math operations be performed on a void pointer?

1061


write a program to print largest number of each row of a 2D array

2334


Describe static function with its usage?

1222


can any one provide me the notes of data structure for ignou cs-62 paper

2189


i have a written test for microland please give me test pattern

2744


how to find anagram without using string functions using only loops in c programming

3203


What does node * mean?

1252


What is a list in c?

1045


which is an algorithm for sorting in a growing Lexicographic order

1816


what value is returned to operating system after program execution?

2132


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2141


plz let me know how to become a telecom protocol tester. thank you.

2198


What is #pragma statements?

1107


What is a pointer in c?

1589


How to write a code for reverse of string without using string functions?

2158