Problem2141--【入门】求梯形的面积

2141: 【入门】求梯形的面积

[Creator : admin]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

梯形面积的求解公式为 S = (a + b) * h / 2。从键盘读入一个梯形的上底a、下底b和高h,请计算表梯形的面积。(结果保留1位小数)


Input

三个整数a、b、h

Output

梯形的面积

Sample Input Copy

2 3 5

Sample Output Copy

12.5
Please give us a Star @HUSTOJ Github!

欢迎关注微信公众号onlinejudge