#include
double l, w, h;
double s, v;
void area(void)
{
s += l * w * 2.0;
s += l * h * 2.0;
s += w * h * 2.0;
return;
}
void vol(void)
{
v = l * w * h;
return;
}
int main(void)
{
scanf("lf %lf %lf", &l, &w, &h);
printf("%.2lf %.2lf\n", s, v);
return 0;
}
#include
int c,k,g;
int tj(int c,int k,int g){
return c*k*g;
}
int bmj(int c,int k,int g){
return (c*k+c*g+g*k)*2;
}
void main(){
printf("请输入长,宽,高:\n");
scanf("%d%d%d",&c,&k,&g);
printf("表面积:%d\n",bmj(c,k,g));
printf("体积:%d\n",tj(c,k,g));
}