Wednesday, August 9, 2017

Short Code - One number is multiple of Another

Function with if else conditions - To find the number is multiple of another

int main
{
int a,b;

printf("enter any two number\n");

scanf("%d%d",&a,&b);

if (a%b==0)

printf("this is  multiple number");

else if (b%a==0);

printf("this is multiple number");

else

printf("this is not multiple number");

return 0;
}

No comments:

Post a Comment