C++ 代码
#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
cin>>a>>b;
if(b>=a)
{
if(b%a==0)cout<<"Sao Multiplos";
else cout<<"Nao sao Multiplos";
}
else
{
if(!(a%b))cout<<"Sao Multiplos";
else cout<<"Nao sao Multiplos";
}
return 0;
}