Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double A, B, C;
- scanf("%lf %lf %lf", &A, &B, &C);
- if(A+B > C && A+C > B && B+C > A)
- {
- printf("Perimetro = %0.1lf", A+B+C);
- }
- else
- {
- printf("Area = %0.1lf", ((A+B)/2)+C);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement