Last active
August 16, 2018 18:35
-
-
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!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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