What will the value of the answer variable be after the code segment below has been run.
bool answer ;
int number3 = 5, number5 = 30;
answer = number3 <= number5 ;
using namespace std;
int main()
{
bool answer ;
int number3 = 5, number5 = 30;
answer = number3 <= number5 ;
cout<<"\n\tanswer = number3 <= number5 = "<<answer;
return(0);
}
Comments
Leave a comment