Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,y,z;
- char k,l;
- cin>>x>>k>>y>>l>>z;
- if(x+y==z||x-y==z||x*y==z){cout<<"Yes";}
- else if (x+y!=z){cout<<x+y;}
- else if (x-y!=z){cout<<x-y;}
- else if (x*y!=z){cout<<x*y;}
- }
Advertisement
Add Comment
Please, Sign In to add comment