#include<stdio.h> int main () { float a,b,h,s; while(scanf("%f,%f,%f",&a,&b,&h)!=EOF) { s=(a+b)*h/2; printf("%.2f",s); } return 0; }
16.零起点学算法11——求梯形面积
猜你喜欢
转载自www.cnblogs.com/Estwind/p/9710471.html
今日推荐
周排行