fork download
  1. a=6
  2. b=2
  3. c=4
  4. d=3
  5. h=2
  6. def obwod (a,b,c,d):
  7. return a+b+c+d
  8. def pole (a,b,h):
  9. return (a+b)*h/2
  10. print ("obwod wynosi", obwod (a,b,c,d))
  11. print ("pole wynosi", pole (a,b,h))
Success #stdin #stdout 0.03s 9656KB
stdin
Standard input is empty
stdout
obwod wynosi 15
pole wynosi 8.0