test
This commit is contained in:
13
task_11.py
Normal file
13
task_11.py
Normal file
@@ -0,0 +1,13 @@
|
||||
k = int(input("Введите цифру k: "))
|
||||
s = int(input("Введите число s: "))
|
||||
start = int(input("Введите начало интервала: "))
|
||||
|
||||
count = 0
|
||||
num = start
|
||||
|
||||
while count < 10:
|
||||
if num % 10 == k and num % s == 0:
|
||||
print(num, end=" ")
|
||||
count += 1
|
||||
num += 1
|
||||
print()
|
||||
Reference in New Issue
Block a user