#include<iostream>
using namespace std;
class Bulk
{
public:
Bulk(){double l,w,h;cin>>l>>w>>h;lengh=l;width=w;height=h;}
void V(){volume=(this->lengh)*(this->width)*(this->height);cout<<volume<<endl;}
void A(){double areas;areas=((this->lengh)*(this->width)+(this->lengh)*(this->height)+(this->width)*(this->height))*2;cout<<areas<<endl;}
private:
double lengh;
double width;
double height;
double volume;
};
int main()
{
Bulk b;
b.V();
b.A();
return 0;
}
烟大 oj 2353
最新推荐文章于 2017-06-15 18:58:38 发布