double cost, kolvo, sale;
cout << "Enter cost:";
cin >> cost;
cout << "Enter kolvo:";
cin >> kolvo;
cout << "Enter sale:";
cin >> sale;
double summ = cost*kolvo*((100-sale) / 100);
cout << "You must pay " << summ << " UAH" << endl;
system("pause");
cout << "Enter cost:";
cin >> cost;
cout << "Enter kolvo:";
cin >> kolvo;
cout << "Enter sale:";
cin >> sale;
double summ = cost*kolvo*((100-sale) / 100);
cout << "You must pay " << summ << " UAH" << endl;
system("pause");
Комментариев нет:
Отправить комментарий