Answer to Question #263546 in C++ for DANISH

Question #263546

What is the output of the following program?


#include <iostream>


using namespace std;



int main()


{


int firstNum = 28;


int secondNum = 25;


cout << firstNum << " " << secondNum << endl;


cout << (firstNum = 38 - 7) << endl;


cout << (firstNum <= 75) << endl;


cout << (firstNum > secondNum + 10) << endl;


cout << (firstNum >= 3 * secondNum - 100) << endl;


cout << (secondNum - 1 == 2 * firstNum) << endl;


cout << firstNum << " " << secondNum << endl;


return 0;


}

1
Expert's answer
2021-11-09T17:47:01-0500

The output of this program is:

28 25

31

1


1


31 25



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS