I have this code:
def LCM(minN,maxN):
count = 1
for i in range(count,(maxN*count)+1):
print(minN*count)
count = count + 1
And if I call it like so: LCM(5,7) its gonna give me the numbers:
5
10
15
20
25
30
35
How could I make the program output (instead of all the numbers) just the last one, in this example: 35
I tried looking it up in the other topics but none were of any help.
if i==(maxN*count):print((maxN*count))?