Execution begins here! t main(int argc, char** argv) { //Declare Variables bool x,y; //Heading cout<<"X Y IX !Y X&&Y XIY

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

Execution Begins Here T Main Int Argc Char Argv Declare Variables Bool X Y Heading Cout X Y Ix Y X Y Xiy 1
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 38 times
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; €
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply