Triangle algorithm checking program

take 3 value from user and check its will complete a or not triangulate.
#include<stdio.h>
int main()
{ int a, b, c, s, d,e;
printf(“Enter the sides of triangle\n”);
scanf(“%d%d%d”,&a,&b,&c);
/* printf(“%d Yes possibale”, a );
printf(“%d Yes possibale”, b);
printf(“%d Yes possibale”, c);*/
//if( s>c && d>a && e>b)
if( a+b>c && b+c>a && a+c>b)
printf(“Yes possibale “);
else
printf(” Sorry!!”);
}

Leave a reply