Advertisement
George_Ivanov05

0.2

Jun 6th, 2021
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. factor = int(input())
  2. count = int(input())
  3.  
  4. list_with_numbers = []
  5.  
  6. for i in range(factor * count + 1):
  7.     if i % factor == 0:
  8.         list_with_numbers.append(i)
  9.         if list_with_numbers[0] == 0:
  10.             list_with_numbers.pop()
  11. print(list_with_numbers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement