#include<iostream> using namespace std; int main() { float s,h,up,down; up=15; down=25; h=2*150/up; s=(up+down)*h/2; printf("s=%0.2f\n",s); return 0; }
ybt2061:【例1.2】梯形面积
最新推荐文章于 2024-11-09 20:38:27 发布
#include<iostream> using namespace std; int main() { float s,h,up,down; up=15; down=25; h=2*150/up; s=(up+down)*h/2; printf("s=%0.2f\n",s); return 0; }