Răspuns:
#include <iostream>
using namespace std;
main()
{
int a,b,c,d;
cout<<"a=";cin>>a;
cout<<"b=";cin>>b;
cout<<"c=";cin>>c;
cout<<"d=";cin>>d;cout<<endl;
if(a==0) cout<<"a=0"<<endl;
if(b==0) cout<<"b=0"<<endl;
if(c==0) cout<<"c=0"<<endl;
if(d==0) cout<<"d=0"<<endl;
}