Construct a logical expression to represent each of the following conditions: [3]
i. Num is between 0 and 5 but not equal to 2.
ii. Age is greater than or equal to 18 and gender is male.
iii. City is either ‘Kolkata’ or ‘Mumbai’.
Answers
Answered by
0
Answer:
(num>=0&&num<=5&&num!=2)
(age>=18&& gender==male)
(City==Kolkata||City== Mumbai)
Similar questions
English,
3 months ago
Social Sciences,
3 months ago
English,
7 months ago
English,
7 months ago
Math,
1 year ago