Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

1043 uri solution

# 1043 triangle
a, b, c = map(float,input().split())
if a+b > c and b+c > a and a+c > b:
    peri = a+b+c
    print("Perimetro = {:.1f}".format(peri))
else:
    area = ((a+b)/2) *c
    print("Area = {:.1f}".format(area))
 
PREVIOUS NEXT
Tagged: #uri #solution
ADD COMMENT
Topic
Name
3+6 =