rony2605

Multiplas opcoes com Elif

Dec 28th, 2012
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data