Răspuns:
2)
{
int x,aux1,aux2;
while(x!=0)
{
aux1=0;
cout<<"x=";
cin>>x;
aux2=x;
while(aux2!=0)
{
aux1=aux1*10+aux2%10;
aux2=aux2/10;
}
cout<<aux1<<endl;
}
return 0;
}
3)
{
int n,i,j,s,nr=0,x;
cout<<"n=";
cin>>n;
for(i=1;i<=n;i++)
{
cout<<"x=";
cin>>x;
s=0;
for(j=2;j<=i/2;j++)
if(x%j==0)
s++;
if(s==5)
nr++;
}
cout<<nr;
return 0;
}
Explicație:
Multumesc+5*+cel mai inteligent raspuns?