Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void lavash (int *a, int n ){
- int b = 0;
- for ( int i=0; i<n;i++)
- b ^= a[i];
- cout << b << endl;
- }
- int main()
- {
- int n = 9;
- int a[n]={11,54,12,64,2,11,12,2,64};
- lavash(a,n);
- cout << " " << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment