double length, weight, height;
cout << "Enter length of room:";
cin >> length;
cout << "Enter weight of room:";
cin >> weight;
cout << "Enter height of room:";
cin >> height;
//S= 2(Sa+Sb+Sc)= 2(ab+ bc+ ac) - площадь стен
double tmp = 2*(weight*height + height*length);//площадь стен
cout << "you take " << tmp*0.8 *0.5 << " liters of paint" << endl;
system("pause");
cout << "Enter length of room:";
cin >> length;
cout << "Enter weight of room:";
cin >> weight;
cout << "Enter height of room:";
cin >> height;
//S= 2(Sa+Sb+Sc)= 2(ab+ bc+ ac) - площадь стен
double tmp = 2*(weight*height + height*length);//площадь стен
cout << "you take " << tmp*0.8 *0.5 << " liters of paint" << endl;
system("pause");
Комментариев нет:
Отправить комментарий