Răspuns:
#814 triplul:
#include <iostream>
using namespace std;
int main()
{ int x,y,k;
cout<<"x=";cin>>x;
cout<<"y=";
cin>>y;
k=3*y-x;
cout<<k;
}
#3210 cumparaturi:
#include <iostream>
using namespace std;
int main()
{ int s,B;
cout<<"pret cutie bomboane:";cin>>B;
cout<<"cati bani are Gigel:";cin>>s;
cout<<"poate cumpara "<<s/B<<" cuti";
cout<<endl;
cout<<"ii mai trebuie pt inca o cutie "<<s-((s/B)*B);
}