First n numbers divisible by 7

# First n numbers divisible by 7

Nterms = int(input("Enter number of terms:"))

counter = 0
num = 7

print("First n numbers divisible by 7 are : ")
while(counter < Nterms):
print(num)
num += 7
counter += 1

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu