Logical XOR Program
www.programmingcalculator.com
https://nikhilnihal.github.io/programmingcalculator/index.html
C++ Program for Logical XOR of two Decimal Numbers
#include<bits/stdc++.h>
using namespace std;
int main()
{
int first_number, second_number,ans;
cin>>first_number>>second_number;
ans=first_number^second_number;
cout<<ans<<endl;
return 0;
}
https://nikhilnihal.github.io/programmingcalculator/index.html
C++ Program for Logical XOR of two Decimal Numbers
#include<bits/stdc++.h>
using namespace std;
int main()
{
int first_number, second_number,ans;
cin>>first_number>>second_number;
ans=first_number^second_number;
cout<<ans<<endl;
return 0;
}
Comments
Post a Comment