Logical AND Program
www.programmingcalculator.com
C++ Program for Logical AND 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;
}
C++ Program for Logical AND 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