Tuesday, April 23, 2013

Find out the Multiple Number

Multiple Number




#include<stdio.h>
main()
{
int a, b;
printf("Enter the value of a and b:\n");
//while(scanf("%d %d", &a, &b)==2)
scanf("%d %d",&a,&b);
{
if(a%b==0||b%a==0)
{
printf("The given number is Multiple\n");
}
else
{
printf("The given number is not Multiple\n");
}
}
return 0;
}

No comments:

Post a Comment