jumboframe

Enter even number

Jun 7th, 2018
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input("Enter even number: "))
  2.  
  3. while not n % 2 == 0:
  4.     print ("Invalid number!")
  5.     n = int(input("Enter even number: "))
  6.  
  7. print("Even number entered: "+str(n))
RAW Paste Data