# includeint main (void){ double l, w, h;//定義變量 double s, v;//定義變量printf("please input l:")
;//提示請輸入長方體的長 scanf("%lf", &l)
;//提示請輸入長方體的寬 scanf("%lf", &w)
;//取地址符&不能丟printf("please input h:")
;//取地址符&不能丟s = ((l * w) + (l * h) + (w * h)) * 2;//求長方體的表面積 v = l * w * h;//求長方體的體積printf("s = %lf
v = %lf
", s, v)