Advertisement
ceguinho

triangulo

Apr 27th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. {
  4.  
  5.     int a, b, c;
  6.         printf("informe valores para as variaveis a,b,c"); scanf("%i%i%i",&a,&b,&c);
  7.         if((a<b+c) && (b<c+a) && (c< a+b)){
  8.             if((a==b ) && (b==c)){
  9.                 printf("equilatero");
  10.             } else {
  11.                 if ((a==b)|| (a==c)|| (b==c)){
  12.                     printf("isoceles");
  13.                    
  14.                 }else{
  15.                     printf("escaleno");
  16.                 }
  17.             }
  18.            
  19.         }
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement