Калькулятор скидки

PHOTO EMBED

Tue Apr 26 2022 10:21:24 GMT+0000 (Coordinated Universal Time)

Saved by @Gringi #c++

#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;
content_copyCOPY

Вы покупаете 3 товара в магазине. Если сумма вашего чека превышает 10 000 руб, вам будет сделана скидка 10%. Напишите программу которая запрашивает 3 стоимости товара и вычисляет сумму чека