0

isn't the questione about or operator wrong?

I found this question : { if (age> 18) or (Money> 100) print ("welcome") } Shouldn't it be "AND" ? anyway great app, thanks a lot for this awesome work .

11th Aug 2016, 8:40 PM
Giorgio Ali
Giorgio Ali - avatar
2 Answers
+ 1
no. it is logical to assume that an "And" operator can go there but the question was just after teaching us about OR so it must be the right answer
15th Aug 2016, 2:10 PM
jocker-il
jocker-il - avatar
0
Giorgio if one of the two is there welcome appears and means both must be there
23rd Sep 2016, 4:42 AM
Ahmed Kamal
Ahmed Kamal - avatar