#include <iostream>
usingnamespace std;
void main()
{
int dataValue1;
int dataValue2;
int dataValue3;
cout << "Enter first value= ";
cin >> dataValue1;
cout << "Enter second value= ";
cin >> dataValue2;
cout<<"Enter third Value= " ;
cin>> dataValue3;
for(int i=0; i<8; i++){
for(int j=0; j<8; j++){
for( int k=0; k<8; k++){
{
if ((i &&j) || (j &&k)){//(A and B) or (A and C)
cout<<" "<<endl;}
elseif ((i&&k) &&(j&&!k)){//(A and C)and(B and !C)
cout<< " "<<endl;}
elseif ((i|j) &!(j|k)){//(A or B) and !(B or C)
cout<< " "<<endl;
}}}}}
return ;}
I need to get possible logical combination of the variables A, B, and C, and find which combinations will give a true statement.
why don't you provide some more of your code. Select to start a new thread so you can see how to start and end your code so that others can work with it and use that here.