by CodeChum Admin
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.
Let's go!
Input
A line containing an integer.
8
Output
Multiple lines containing an integer.
4
5
6
7
8
j = int(input('Enter integer here: '))
for i in range(1,j+1):
if i > 3:
print(i)
Enter integer here: 8
4
5
6
7
8
Comments
Leave a comment