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

the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1255


Explain continue keyword in c

1022


Can two or more operators such as and be combined in a single line of program code?

1375


What are external variables in c?

1107


What is c programming structure?

1208


What is a shell structure examples?

1106


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

1058


What does emoji p mean?

1122


How can you increase the size of a dynamically allocated array?

1192


how many errors in c explain deply

2092


Function calling procedures? and their differences? Why should one go for Call by Reference?

1089


What is logical error?

1128


What are comments and how do you insert it in a C program?

1254


What is a built-in function in C?

1608


What are predefined functions in c?

1103