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 ;
#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
Comments
Leave a comment