fork download
  1. a=6
  2. b=6
  3. c=8
  4. h=10
  5. def obwod(a,b,c):
  6. return a+b+c
  7. def pole(a,h):
  8. return a*h
  9. print("obwod wynos t", obwod(a,b,c))
  10. print("pole wynosi t", pole(a,h))
  11. a=10
  12. b=6
  13. c=7
  14. d=7
  15. def obwod(a,b,c,d):
  16. return a+b+c+d
  17. def pole(a,b,h):
  18. return (a+b)*h/2
  19. print("obwod wynosi tr", obwod(a,b,c,d))
  20. print("pole wynosi tr", pole(a,b,h))
Success #stdin #stdout 0.04s 9600KB
stdin
Standard input is empty
stdout
obwod wynos t 20
pole wynosi t 60
obwod wynosi tr 30
pole wynosi tr 80.0