105k views
3 votes
For questions 1-3, consider the following code: x = int (input ("Enter a number: ")) if (x != 8): print ("A") if (x >= 10): print ("B") if (x < 10): print ("C") if (x % 2 == 1): print ("D") What is output if the user types in 13?

1 Answer

3 votes

Answer:

ABD

Step-by-step explanation:

13 not equal 8, greater than 10 and odd. Ifs will be executed step-by-step

User Muddybruin
by
5.2k points