Write a program to gets 10 numbers from the user and counts how many of those numbers are greater than 10.
counter=0
for i in range(0,10):
n=float(input(f"Enter number {i+1}: "))
if(n>10):
counter=counter+1
print(f"{counter} numbers are greater than 10.")
Comments
Leave a comment