Advertisement
VergeoPaw

1043

Sep 19th, 2021
738
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. A,B,C = input().split()
  2. A = float(A)
  3. B = float(B)
  4. C = float(C)
  5. if A + B > C and A + C > B and B + C > A :
  6.     keliling = A + B + C
  7.     print("Perimetro = %.1f"%keliling)
  8. else :
  9.     luas = ((A+B)*C)/2
  10.     print("Area = %.1f"%luas)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement