Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions C++ Nega Bit
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;

// } Driver Code Ends


class Solution {
public:
int negaBit(int F , int S) {
return (S^F);
}
};

// { Driver Code Starts.
int main() {
int t;
cin >> t;
while (t--) {
int F,S;

cin>>F>>S;

Solution ob;
cout << ob.negaBit(F,S) << endl;
}
return 0;
} // } Driver Code Ends