83.4k views
4 votes
NEED HELP ASAP. What is the value of numX when this program is executed ?

NEED HELP ASAP. What is the value of numX when this program is executed ?-example-1
User Blackey
by
5.8k points

1 Answer

3 votes

Since 3 is less than 5 and 8 does not equal 3, numX is 3.

The if statement runs because all of the conditions are true.

User George Hernando
by
5.8k points