Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x;
- int y;
- int a, b, c, d;
- cout << "Introduceti x" <<endl;
- cout << endl;
- cin >> x;
- cout << "Introduceti y" <<endl;
- cout << endl;
- cin >> y;
- a=x-y;
- b=x^y;
- c=x|y;
- d=x&y;
- cout<< "Rezultate:"<<endl;
- cout<< a;
- cout<< endl;
- cout<<b;
- cout<< endl;
- cout<< c;
- cout<< endl;
- cout<<d;
- cout<< endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement