71.9k views
24 votes
If x = 5 and y = 7, will statement if(x!=y) execute?
A. yes
B. no

1 Answer

8 votes
A. yes

!= means not equal, so if you substitute, you get if(5 is not equal to 7), which renders True and executes
User Tomaso Albinoni
by
6.9k points