Friday, October 26, 2018

Uri 1044 Solution in C | Multiples

/*Before seeing the code solution make sure that you have tried enough. Don’t copy- paste the whole code. Find out the logic. If you face any trouble, just inform me in comment.*/

#include<stdio.h>
main()
{
    int x,y;
    scanf("%d%d",&x,&y);
    if(y%x==0||x%y==0)
    {
        printf("Sao Multiplos\n");
    }
    else

      {
         printf("Nao sao Multiplos\n");
      }
    return 0;
}

 //Happy_Coding

No comments:

Post a Comment