Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long int t,i,a,b,c;
- while(scanf("%ld",&t)==1)
- {
- for(i=1;i<=t;i++)
- {
- scanf("%ld%ld%ld",&a,&b,&c);
- if(a+b<c)
- {
- printf("Case %d: Invalid\n",i);
- }
- else if(a+b>c)
- {
- if(a==b&&b==c&&a==c)
- {
- printf("Case %d: Equilateral\n",i);
- }
- if(a==b&&a!=c&&b!=c)
- {
- printf("Case %d: Isosceles\n",i);
- }
- if(a!=b&&b!=c&&a!=c)
- {
- printf("Case %d: Scalene\n",i);
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement