Guest User

Untitled

a guest
Oct 21st, 2016
60
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.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x,y,z;
  8. char k,l;
  9. cin>>x>>k>>y>>l>>z;
  10. if(x+y==z||x-y==z||x*y==z){cout<<"Yes";}
  11. else if (x+y!=z){cout<<x+y;}
  12.  
  13. else if (x-y!=z){cout<<x-y;}
  14.  
  15. else if (x*y!=z){cout<<x*y;}
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment