Skip to content

Instantly share code, notes, and snippets.

@ImOmkar
Last active August 16, 2018 18:35
Show Gist options
  • Save ImOmkar/b7529d540cff8973350ae6757aef5b39 to your computer and use it in GitHub Desktop.
Save ImOmkar/b7529d540cff8973350ae6757aef5b39 to your computer and use it in GitHub Desktop.
Printing the numbers which are divisible by 7, in the range from 1 to 300 in Python!
n=int(input("enter n numbers")) #input taken from user, with the type Integer
for i in range(1,301): #1 is the start, and 301 is the last value
if(i%7==0):
print(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment