Answer to Question #328692 in Python for Shubham

Question #328692

Write a program to gets 10 numbers from the user and counts how many of those numbers are greater than 10.


1
Expert's answer
2022-04-14T06:16:29-0400
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.")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS