diff --git a/C++ Nega Bit b/C++ Nega Bit new file mode 100644 index 0000000..6b743b2 --- /dev/null +++ b/C++ Nega Bit @@ -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