Ad Code

Responsive Advertisement

Uri - Beecrowd | 1044 | Multiples

beecrowd | 1044

Multiples

Adapted by Neilor Tonin, URI Brazil


Read two nteger values (A and B). After, the program should print the message "Sao Multiplos" (are multiples) or "Nao sao Multiplos" (aren’t multiples), corresponding to the read values.

Input

The input has two integer numbers.

Output

Print the relative message to the input as stated above.

Input Sample Output Sample

6 24

Sao Multiplos

6 25

Nao sao Multiplos

N.B.: It's better if you solve this by your own. Thank you!


  URI - BEECROWD Online Judge 1044 Solved in C:                                                             

//Solved by Intesar
#include <stdio.h>

int main() {

    int A,B;
    scanf("%d%d",&A,&B);

    if(B%A==0 || A%B==0)
        printf("Sao Multiplos\n");
    else
        printf("Nao sao Multiplos\n");

    return 0;
}

Post a Comment

0 Comments

Ad Code

Responsive Advertisement