Wednesday, January 20, 2016

URI Solution of 1044 - Multiples

#include <stdio.h>
//URI 1044
//Author: Humaun Kabir
  
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;
}

No comments:

Post a Comment

Thank you for commenting. Please wait for response :)