Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int a, b;
  9. cin>>a>>b;
  10. if (a==0)
  11. if (b==0)
  12. printf ("Many solutions");
  13. else
  14. printf("No solution");
  15. else
  16. if (b%a!=0)
  17. printf ("No solution");
  18. else
  19. cout<<b/a;
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement