Pascal :
var a,b,h:integer; s:real; begin read(a,b,h); s:=(a+b)*h/2; write(s:0:1); end.
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 算道OJ universal account