C-study/03-1/3/3.c
2021-10-30 00:05:32 +08:00

15 lines
409 B
C

#include<stdio.h>
int main(){
float a,b,c;
scanf("%f %f %f",&a,&b,&c);
if(a==b && a==c ){printf("equilateral triangle");return 0;}
if(a==b || a==c){printf("isoceles triangle");return 0;}
if(a*a+b*b == c*c || a*a+c*c == b*b || b*b+c*c == a*a){printf("right-angled triangle");return 0;}
if(a+b>c && a+c>b && b+c>a){printf("arbitrary triangle");return 0;}
printf("It isn't triangle");
return 0;
}