#include<stdio.h> #include<math.h> main() { int x1,x2,x3,a,b,c,d,e,f,s1,s2,s3; printf("enter x1 coordinates %d %d",a,b); printf("enter x2 coordinates %d %d",c,d); printf("enter x3 coordinates %d %d",e,f); s1=sqrt((a-c)*(a-c)) - ((b-d)*(b-d)); s1=sqrt((c-e)*(c-e)) - ((d-f)*(d-f)); s1=sqrt((e-a)*(e-a)) - ((f-b)*(f-b)); if((s1+s2>s3) || (s2+s3>s1) || (s1+s3>s2)) printf("is atraingle"); else printf("not a triangle"); if(s1==s2 && s2==s3) printf("equilateral traingle"); if(s1==s2 || s2==s3 || s3==s1) printf("isosceless traingle"); if((sqrt(s1*s1+s2*s2)==s3) || (sqrt(s2*s2+s3*s3)==s1) || (sqrt(s1*s1+s3*s3)==s2) printf("right angle"); }