Java 代码
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
int a = cin.nextInt();
int b = cin.nextInt();
if ( a % b == 0 || b % a == 0)
System.out.println("Sao Multiplos");
else
System.out.println("Nao sao Multiplos");
}
}