Advertisement
Guest User

I PLAY POGO

a guest
Oct 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x;
  8. int y;
  9. int a, b, c, d;
  10. cout << "Introduceti x" <<endl;
  11. cout << endl;
  12. cin >> x;
  13. cout << "Introduceti y" <<endl;
  14. cout << endl;
  15. cin >> y;
  16. a=x-y;
  17. b=x^y;
  18. c=x|y;
  19. d=x&y;
  20. cout<< "Rezultate:"<<endl;
  21. cout<< a;
  22. cout<< endl;
  23. cout<<b;
  24. cout<< endl;
  25. cout<< c;
  26. cout<< endl;
  27. cout<<d;
  28. cout<< endl;
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement