Beecrowd 1044 Solution || Beecrowd 1044 Multiples Solution

Beecrowd 1044 Question

Beecrowd 1044 Multiples Solution in C

#include<stdio.h>

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;

}

Beecrowd 1044 Multiples Solution in C++

#include<iostream>

using namespace std;

int main() {
int a, b;
cin >> a >> b;
if (a % b == 0 || b % a == 0) {
cout << "Sao Multiplos\n";
} else {

cout << "Nao sao Multiplos\n";
}
return 0;
}

Beecrowd 1048 – Salary Increase solution in C/CPP

1 thought on “Beecrowd 1044 solution || Beecrowd 1044 Multiples Solution in C & C++”

Leave a Comment