#2061 更新于 2025-11-20 23:51

【例1.2】梯形面积

📝 题解

#include<bits/stdc++.h>
using namespace std;
int main()
{
    double h = 150 * 2 / 15;//求高
    cout << fixed << setprecision(2) << (15 + 25) * h / 2;//(上底 + 下底) * 高 / 2
    return 0;
}