- 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
10 Réponses
+ 3
??
+ 2
1. If
2. age
+ 1
($age
18)
{
"Welcome";
}
answer is : 1) if
2) >
3) echo
0
1._____? =if
2._____? =age
0
print "Male" if the variable "gender" is equal to 0, "Female" if it is equal to 1, and "Undefined" other cases.
0
if
($age
>
18)
{
echo
"Welcome";
}
0
int age = 25;
if(age > 18) {
cout << "Adult";
}
0
if
>
echo
- 1
if($age>18)
{
echo"welcome"
}
- 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";