CBSE Class 11 Computer Science Question 30 of 161

Flow of Control — Question 12

Back to all questions
12
Question

Question 12

If the user inputs : 2<ENTER>, what does the following code snippet print?

x = float(input())
if(x==1):
    print("Yes")
elif (x >= 2):
    print("Maybe")
else:
    print ("No")
  1. Yes
  2. No
  3. Maybe ✓
  4. Nothing is printed
  5. Error
Answer