- 1

Will u plzzz filll the blanks

int age=23; int money=4; if (age>21__money>500){ court<<"welcome"<<endl; }

30th Jan 2017, 7:13 AM
Md.shakib khan
Md.shakib khan - avatar
4 Answers
+ 6
&& or ||
30th Jan 2017, 7:22 AM
ASNM
ASNM - avatar
+ 2
You should link the two boolean expressions ("age>21", "money>500") with a boolean operator (either 'and' or 'or'), in order to form a compound boolean expression inside the 'if'.
30th Jan 2017, 7:22 AM
Álvaro
+ 2
thnx so much
30th Jan 2017, 7:23 AM
Md.shakib khan
Md.shakib khan - avatar
0
To print "Welcome" you cant use && operator as one of them is false so to print Welcome you have to use || operator.
30th Jan 2017, 6:10 PM
Anket