#include <iostream>
void main()
{
int glowe, bag ,purse, money;
std::cin>>glowe>>bag>>purse>>money;
int total = glowe+bag+purse;
std::cout<<"Total sum = "<<total<<" change"<<money-total;
}
Объяснение:
#include <iostream>
void main()
{
int glowe, bag ,purse, money;
std::cin>>glowe>>bag>>purse>>money;
int total = glowe+bag+purse;
std::cout<<"Total sum = "<<total<<" change"<<money-total;
}
Объяснение: