Answer to Question #252915 in Python for ben

Question #252915

Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.


1
Expert's answer
2021-10-18T18:28:25-0400

Source code

N=int(input("Enter a number: "))
for i in range(1,N+1):
    if(i>3):
        print(i)


Sample Output


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