/*
Выводы перед вводом данных(cout) можно убрать (сделал для удобства)
*/
#include
#include
#define UNITS '$' // <- Валюта</p>
using namespace std;
int main()
{
int SWEETS, COOKIES, APPLES;
cout<<"Price for 1 kg of sweets\n>>"<<UNITS;</p>
cin>>SWEETS;
cout<<"Price for 1 kg of cookies\n>>"<<UNITS;</p>
cin>>COOKIES;
cout<<"Price for 1 kg of apples\n>>"<<UNITS;</p>
cin>>APPLES;
int x, y, z;
cout<<"----Enter amount in kg----\n";</p>
cout<<"How many sweets?\n>>";
cin>>x;
cout<<"How many cookies?\n>>";
cin>>y;
cout<<"How many apples?\n>>";
cin>>z;
int total = x*SWEETS + y*COOKIES + z*APPLES;
cout<<"=========================\n"<<"TOTAL PRICE IS\n"<<UNITS<<total<<"\n=========================\n";</p>
return 0;
}