- Execution Begins Here T Main Int Argc Char Argv Declare Variables Bool X Y Heading Cout X Y Ix Y X Y Xiy 1 (38.97 KiB) Viewed 39 times
Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y IX !Y X&&Y XIY
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y IX !Y X&&Y XIY
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; €