Pr0gramer icon

Number Greater than 10

Pr0gramer | PRO | 06/02/17 09:45:18 PM UTC | 0 ⭐ | 289 👁️ | Never ⏰ | []
Python |

500 B

|

None

|

0 👍

/

0 👎

#user welcome
print ("Please Enter your name below:")
user = str(input())
print ("")
print ("welcome " + user + ", please enter you number below:")
 
#loop function
for i in range(999999):
    n = float(input()) #Reads the number input and assigns it to the variable "n"
    if n == 10:
        print ("The number given is equal to 10")
    else:
        if n > 10:
            print ("The number given is greater than 10")
        else:
            print ("The number given is lower than 10")

Comments