Answer to Question #265160 in C++ for ursula

Question #265160

What will the value of the solution variable be after the code segment below has been run?


bool solution ;

int number2 = 10, number7 = 25, number9 = 16;


solution = number2 >= number7 && number2 > number9 ;  


1
Expert's answer
2021-11-14T09:21:37-0500
#include <iostream>


using namespace std;


int main()
{
  bool solution ;
  int number2 = 10, number7 = 25, number9 = 16;
  solution = number2 >= number7 && number2 > number9 ;   
  cout << solution << '\n';
  
}

Output:
0

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