From ae8fc334f9ff6154e967f2975d57050cba55317c Mon Sep 17 00:00:00 2001 From: Udhay <72250606+Udhay-Brahmi@users.noreply.github.com> Date: Wed, 23 Dec 2020 07:58:44 +0530 Subject: [PATCH] Create C++ Nega Bit --- C++ Nega Bit | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 C++ Nega Bit 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 +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