Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- double A,B,C;
- A > B;
- A > C
- scanf("%lf %lf %lf",&A,&B,&C);
- if (A>=B+C)
- {
- printf("NAO FORMA TRIANGULO\n");
- }
- if (A*A==(B*B)+(C*C))
- {
- printf("TRIANGULO RETANGULO\n");
- }
- if ((A*A)>(B*B)+(C*C))
- {
- printf("TRIANGULO OBTUSANGULO\n");
- }
- if ((A*A)<(B*B)+(C*C))
- {
- printf("TRIANGULO ACUTANGULO\n");
- }
- if (A==B && B==C && A==C)
- {
- printf("TRIANGULO EQUILATERO\n");
- }
- if (A==B || B==C || A==C)
- {
- printf("TRIANGULO ISOSCELES\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement