Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y IX !Y X&&Y XIY
Posted: Sun Jul 10, 2022 11:30 am
Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y IX !Y X&&Y XIY X^Y X^y^X X^Y^Y !X&& !Y <<"! (XY) !X||!Y (X&&Y) "<<endl; //First Row x=y=true; cout<<(x?'T':'F')<<" cout<<(y?'T':'F')<<" cout<<(!x?'T':'F')<<" cout<<(!y?'T':'F')<<" cout<<(x&&y? 'T':'F') <<" cout<<(x|y?'T':'F')<<" cout<<(x^y?'T':'F')<<" cout<<endl; //Second Row y=false; cout<<(x?'T':'F')<<" cout<<(y?'T':'F')<<" cout<<(!x?'T':'F')<<" cout<<(!y?'T':'F')<<" cout<<(x&&y? 'T':'F')<<" cout<<(x|y?'T':'F')<<" cout<<(x^y?'T':'F')<<" cout<<endl; //Exit the program return 0; €