- 3

ABOUT UR QUESTION

Fill in the blanks to test both conditions in the following if statement. int age = 23; int money = 4; if (age > 21 __________money > 500) { cout << "welcome" << endl; } if two conditions are true,then only it will print welcome.. how to resolve this question using and operator its possible?? give clearness about this question

9th Jan 2017, 2:01 PM
priyanka p
4 odpowiedzi
+ 7
yes. it is correct
11th Mar 2018, 12:58 AM
shahin
+ 2
Use! "logical and" operator (&&)
9th Jan 2017, 2:02 PM
Divesh Agarwal
Divesh Agarwal - avatar
0
int age = 26; int money = 4; if (age > 21 [ && ] money > 500) { cout << "welcome" << endl; }
8th Oct 2022, 6:06 PM
Afaq Ahmad
- 2
int age = 26; int money = 4; if (age > 21 [ ] money > 500) { cout << "welcome" << endl; } Answer is ||
10th Dec 2021, 2:39 AM
Benmar N. Sibonga
Benmar N. Sibonga - avatar