Răspuns:
Explicație:#include<iostream>
using namespace std;
int main()
{
int a,b,c,d,m,k=0;;
cout<<"a=";cin>>a;
cout<<"b=";cin>>b;
cout<<"c=";cin>>c;
m=a;
if(b<m) m=b;
if(c<m) m=c;
for(d=1;d<=m/2;d++)
if(a%d==0 and b%d==0 and c%d==0)
{cout<<d<<" ";k++;}
if(a%m==0 and b%m==0 and c%m==0)
{cout<<m;
k++;}
cout<<endl;
cout<<k<<" divizori comuni";
}