Here is the solution to URI problem ID: 1044
#include<stdio.h>
#include<math.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a%b==0||b%a==0)
{printf("Sao Multiplos\n");}
else
{printf("Nao sao Multiplos\n");}
return 0;
}
#include<stdio.h>
#include<math.h>
int main()
{
int a,b;
scanf("%d%d",&a,&b);
if(a%b==0||b%a==0)
{printf("Sao Multiplos\n");}
else
{printf("Nao sao Multiplos\n");}
return 0;
}
Comments
Post a Comment