Advertisement
Rehan_Rahman26

uri 2313

Nov 14th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int a,b,c,d,e;
  5. scanf("%d %d %d",&a,&b,&c);
  6.  
  7. d=sqrt((a*a)+(b*b));
  8. e=b*c/2;
  9.  
  10.  
  11. if(a>b+c && b>c+a && c>a+b)
  12. printf("Valido-Equilatero\n");
  13. else if(a<b<c)
  14. {
  15. printf("Valido-Escaleno\n");
  16.  
  17. if(c==d)
  18. printf("Retangulo: S\n");
  19. else
  20. printf("Retangulo: N\n");
  21. }
  22. else if(a=e)
  23. {
  24. printf("Valido-Isoceles\n");
  25. if(c==d)
  26. printf("Retangulo: S\n");
  27. else
  28. printf("Retangulo: N\n");
  29.  
  30. }
  31. else
  32. printf("Invalido\n");
  33.  
  34. return 0;
  35. }
  36. uri 2313
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement