Solution of 1044 number !
please do not copy it rather watch it for learning purpose :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a,b;
cin >> a >> b;
if(a<b)
{
if(b%a==0 ) cout << "Sao Multiplos" << endl;
else cout << "Nao sao Multiplos" << endl;
}
else
{
if(a%b==0 ) cout << "Sao Multiplos" << endl;
else cout << "Nao sao Multiplos" << endl;
}
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
please do not copy it rather watch it for learning purpose :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
int a,b;
cin >> a >> b;
if(a<b)
{
if(b%a==0 ) cout << "Sao Multiplos" << endl;
else cout << "Nao sao Multiplos" << endl;
}
else
{
if(a%b==0 ) cout << "Sao Multiplos" << endl;
else cout << "Nao sao Multiplos" << endl;
}
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
Comments
Post a Comment