0
In this question money=4 , and in if condition i use & operator and it does not satisfies the conditon which is money>500 ,
8 ответов
+ 7
what answer you gave? and what was the question?
+ 6
Please provide the original question.
+ 3
Since money is less than 500, nothing will be displayed on the console window.
+ 3
Do you mean that "welcome" was displayed on the console window?
0
int age = 23;
int money =4 ;
if(age>21&&money>500)
{
cout<<"welcome";
}
//I'm not able to send the screenshot , I have screenshot too //
0
TEAM ELIMINATOR money is 4 which is less than 500 you are checking in your if statement if it is greater than 500 so it will not run unless money is 501 or more.
0
I m still not getting , the code is correct but the condition is wrong , so why would it display me correct ?
0
it's says ur answer is correct , so it should print according to the app , but it shouldn't according to the code