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