Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdio>
- using namespace std;
- int main()
- {
- int a, b;
- cin>>a>>b;
- if (a==0)
- if (b==0)
- printf ("Many solutions");
- else
- printf("No solution");
- else
- if (b%a!=0)
- printf ("No solution");
- else
- cout<<b/a;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement