d=int(input("Decreasing number: "))
i=int(input("Increasing number: "))
def i_d (n,m):
c=0
for f in range (100,0,-n):
for c in range (0,100,m):
print (f,c)
print ()
i_d(d,i)
This is my program, it should give me two number lists, one decreasing and the other increasing.
For example:
d=60
i=40
it should print:
100 0
40 40
40 80
instead it prints:
100 0
100 40
100 80
40 0
40 40
40 80