triangle.c 374 Bytes
#include <stdio.h>
//This program gets three double numbers from the user and
// declares whether we can have a triangle with these lengths or not.
int main(){
double a, b, c;
printf("Three lengths: ");
scanf("%lf %lf %lf", &a, &b, &c);
if (a+b<=c || a+c<=b || b+c<=a)
printf("Triangle is impossible!\n");
else
printf("Triangle is possible!\n");
return 0;
}