#include<iostream> using std::cout; using std::cin; using std::endl; int main() { setlocale(LC_ALL, "RUS"); int productCostOne; int productCostTwo; int productCostThree; int deliveryCost; int discount; cout<<"Введите стоймость первого товара: "; cin>> productCostOne; cout<<"Введите стоймость второго товара: "; cin>> productCostTwo; cout<<"Введите стоймость третьего товара: "; cin>> productCostThree; cout << "Введите стоимость доставки: "; cin >> deliveryCost; cout << "Скидка: "; cin >> discount; if (productCostOne + productCostTwo + productCostThree > 10000) { deliveCost = price * 10 \ 100; std::cout << "Стоимость товаров превышает 10000 рублей, вам будет сделана скидка 10%." << endl; std::cout << "Поэтому вы получаете скидку на доставку!" << endl; } int price = productCostOne + productCostTwo + productCostThree + deliveryCost - discount; std::cout << "--------------" << endl; std::cout << "Полная стоимость товара: " << price << endl; return 0;