Is this the logic and order? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is this the logic and order?

This is how I got the answer correct, but I dont know if I got the right answer by mistake.... x=4, y=2 Steps a) not 1==y (TRUE) b) and 7==8 (FALSE)... so overall the if statement is FALSE?? c) x>y (TRUE)... so it prints "NO"

23rd Jan 2017, 1:55 AM
Duncan Wallace
1 Answer
+ 1
Based on the information given, yes, that is the correct answer. :)
27th Jan 2017, 10:40 PM
Lelearner