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

Explain what is the difference between null and nul?

1170


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1128


Is there any demerits of using pointer?

1080


Why do we need arrays in c?

1167


Is it fine to write void main () or main () in c?

1039


What are type modifiers in c?

1063


What is a pragma?

1137


In C programming, what command or code can be used to determine if a number of odd or even?

1072


Why c is called a middle level language?

1121


What is the difference between the expression “++a” and “a++”?

1241


What does the characters “r” and “w” mean when writing programs that will make use of files?

1488


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2170


What is a macro, and explain how do you use it?

1091


Explain the difference between the local variable and global variable in c?

1084


Differentiate between functions getch() and getche().

1060