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 ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is exit(status) truly equivalent to returning the same status from main?

1123


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

2473


write a proram to reverse the string using switch case?

3009


write a program to print data of 5 five students with structures?

2092


What is typeof in c?

1064


Explain what is the difference between functions abs() and fabs()?

1261


Explain what is dynamic data structure?

1225


Why malloc is faster than calloc?

1121


What is a void pointer? When is a void pointer used?

1108


how to execute a program using if else condition and the output should enter number and the number is odd only...

2376


What are the types of data types and explain?

1137


How many bytes are occupied by near, far and huge pointers (dos)?

1220


Tell me when is a void pointer used?

1243


Can you please explain the difference between exit() and _exit() function?

1087


What is the difference between text and binary modes?

1244