Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

1043 uri solution c

#include <stdio.h>
int main()
{
    float A, B, C;
    scanf("%f %f %f", &A, &B, &C);
    if (A < B+C && B < A+C && C < B+C){
        printf("Perimetro = %.1f
",A+B+C);
    }
    else
        printf("Area = %.1f
",((A+B)*C) / 2);
    return 0;
}
Source by www.beecrowd.com.br #
 
PREVIOUS NEXT
Tagged: #uri #solution
ADD COMMENT
Topic
Name
8+8 =