- 2

Fill in the blanks to check if the age variable is greater than 18: int age = 25; ( > 18) { cout << "Adult"; }

Fill in the blanks to check if the age variable is greater than 18: int age = 25; ( > 18) { cout << "Adult"; } What the the question does not tell you anything i got the first answer it is if and the other has an a in it

16th Apr 2018, 3:44 PM
Casey Oleski
Casey Oleski - avatar
10 Antworten
+ 3
??
16th Apr 2018, 4:49 PM
AguZ. Ok.
AguZ. Ok. - avatar
+ 2
1. If 2. age
10th Dec 2020, 3:39 AM
Ethan Poteat
Ethan Poteat - avatar
+ 1
($age 18) { "Welcome"; } answer is : 1) if 2) > 3) echo
29th Feb 2020, 7:36 AM
Sadman Fahim
Sadman Fahim - avatar
0
1._____? =if 2._____? =age
16th Apr 2018, 3:49 PM
ARIF ANSARI
ARIF ANSARI - avatar
0
print "Male" if the variable "gender" is equal to 0, "Female" if it is equal to 1, and "Undefined" other cases.
23rd Jan 2020, 6:00 AM
Bhanu Bhaskar Sharma
Bhanu Bhaskar Sharma - avatar
0
if ($age > 18) { echo "Welcome"; }
19th Dec 2020, 11:51 AM
El Maslohi Hassan
0
int age = 25; if(age > 18) { cout << "Adult"; }
25th Mar 2021, 5:37 PM
Mahnoor Shahzad
Mahnoor Shahzad - avatar
0
if > echo
1st May 2021, 1:36 PM
IMTIAZ AHMAD
IMTIAZ AHMAD - avatar
- 1
if($age>18) { echo"welcome" }
28th Nov 2018, 4:55 PM
LOPEDES EZEKIEL LAPAYU
- 1
print "Male" if the variable "gender" is equal to 0, "Female" if it is equal to 1, and "Undefined" other cases. if($gender == 0) echo "Male"; elseif ($gender == 1) echo "Female"; else echo "Undefined";
10th May 2020, 3:07 PM
Gayani GUELPA
Gayani GUELPA - avatar