Pr0gramer

Number Greater than 10

Jun 2nd, 2017
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. #user welcome
  2. print ("Please Enter your name below:")
  3. user = str(input())
  4. print ("")
  5. print ("welcome " + user + ", please enter you number below:")
  6.  
  7. #loop function
  8. for i in range(999999):
  9.     n = float(input()) #Reads the number input and assigns it to the variable "n"
  10.     if n == 10:
  11.         print ("The number given is equal to 10")
  12.     else:
  13.         if n > 10:
  14.             print ("The number given is greater than 10")
  15.         else:
  16.             print ("The number given is lower than 10")
Advertisement
Add Comment
Please, Sign In to add comment