Mã: #include <iostream>using namespace std; void UC (int a,int b, int c) { if(a%b==0&&c%b==0) cout<<" b la uc"; else { if(b%a==0&&c%a==0) cout<<"a la uc"; else { if(a%c==0&&b%c==0) cout<<"c la uoc chung"; else cout<<"khong phai"; } } } void main () { int a,b,c,tg; cout<<"\n Nhap a : "; cin>>a; cout<<"\n Nhap b : "; cin>>b; cout<<"\n Nhap c : "; cin>>c; UC (a,b,c); }