首页 > 牛牛学梯形
头像 张田懿
发表于 2020-12-09 19:10:17
include using namespace std;int main(){ int up,down,height; double s; cin>>up>>down>>height; s=(up+down)*height/2.0; 展开全文
头像 金龙月轩寰语唐舞麟
发表于 2020-12-26 12:31:35
#include<bits/stdc++.h> using namespace std; int main() { double u,d,h,s; cin>>u>>d>>h; s=(u+d)*h/2; printf("% 展开全文
头像 Ayx03
发表于 2022-02-26 19:02:34
#include<cstdio> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%.3f",(a+b)*c/2.0); }
头像 天元之弈
发表于 2022-01-16 11:35:45
原题传送门-> https://ac.nowcoder.com/acm/problem/21995 我的博客-> https://blog.nowcoder.net/yanhaoyang2106 题目描述 输入梯形的上边和下边边长,以及梯形的高度,求梯形的面积 又是一道小学题 梯形面积公 展开全文
头像 传说中的程序大神
发表于 2024-03-09 10:52:13
#include<iostream> #include <iomanip> using namespace std; float func(float a,float b,float c){        &nbs 展开全文
头像 HUAYI_SUN
发表于 2022-09-29 13:17:02
#include<bits/stdc++.h> using namespace std; int main() {     double a,b,c;     cin& 展开全文
头像 牛客1997199195号
发表于 2021-11-18 11:10:13
#include <stdio.h> int main(){ int up,down,height; scanf("%d%d%d",&up,&down,&height); float s=(float)(up+down)*height/2; printf("%0. 展开全文
头像 麻花蘸豆浆
发表于 2020-02-07 13:17:14
include<stdio.h> main(){int up,down,height;double s; scanf("%d%d%d",&up,&down,&height); s=(double)(up+down)*height/2; printf("%.3f", 展开全文
头像 牛客笑哈哈
发表于 2022-06-18 10:53:31
一: import java.util.Scanner; import java.text.DecimalFormat; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(St 展开全文
头像 Codecodify
发表于 2023-04-13 23:57:13
使用面向对象思想来实现 #include <iostream> #include <iomanip> using namespace std; class Trapezia { public: Trapezia(float up, float do 展开全文