Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int a,b,temp;
- cin>>a>>b;
- if(a>b)
- {
- temp = a;
- a = b;
- b = temp;
- }
- if(b%a==0)
- {
- cout<<"Sao Multiplos"<<endl;
- }
- else if (b%a != 0)
- {
- cout<<"Nao sao Multiplos"<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment