Advertisement
rony2605

Multiplas opcoes com Elif

Dec 28th, 2012
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. x =(int(input("Digite um valor para x: ")))
  2.  
  3. if x==2:
  4.         print("Dois")
  5. elif x==3:
  6.         print("Tres")
  7. elif x== 4:
  8.         print("Quatro")
  9.  
  10. else:
  11.     print("Qualquer numero difirete de dois tres ou quatro")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement