Răspuns:
1)#include <iostream>
using namespace std;
int main()
{
int gaini,pisici,capete=0,picioare=0;
cin>>gaini;
pisici=gaini+5;
picioare=2*gaini+4*pisici;
capete=gaini+pisici;
cout<<picioare<<' '<<capete;
return 0;
}
2)#include <iostream>
using namespace std;
int main()
{
int baieti,fete,elevi;
cin>>fete;
baieti=fete+5;
elevi=baieti+fete;
cout<<elevi;
return 0;
}