Предмет: Информатика, автор: saharova1977

Считайте целые числа m и n (m < n), и выведите все числа X из отрезка [m, n], такие что X:(n — т), каждое новое число с новой
строки. Примечание: Знак кратности – три точки друг под другом по вертикали :. Вроде всем известного двоеточия, только точек не две, а три.
Читается: Х кратно разности n - m. Python!! Цикл for. Помогите!

Ответы

Автор ответа: robertkalentyev2
1

m, n = int(input()), int(input())

for i in range(min(m, n), max(m, n)):

   if i % (n - m) == 0: print(i)


saharova1977: Test input:
11
12
Correct output:
11
12
Your output:
11
robertkalentyev2: for i in range(min(m, n), max(m, n) + 1):
исправьте 3 строку на это
Интересные вопросы
Предмет: Русский язык, автор: leraserebro
Предмет: Английский язык, автор: spectrophobia162337
Прочитайте приведенный ниже текст. Преобразуйте слова, напечатанные заглавными буквами ниже, так, чтобы они грамматически соответствовали содержанию текста. Заполните пропуски полученными словами. Каждое пропущенное слово соответствует отдельному заданию B4-B12.

Long ago, when I ________ at my shiny new comprehensive school, our year group was divided into 12 classes, having four ability streams. Most of the white, middle-class children ________ in the top bands while the poor, black or transient pupils were largely put in the bottom streams. By our third year in secondary school, streaming ___________ in favour of a mixed-ability approach. But the damaging labels endured, throughout our school lives and beyond. Several decades on, and the wheel _______ apparently full circle. Streaming, the wholesale subdivision of children into groups on the basis of a ______, single ability label, is making a big comeback, part of the retro traditionalism in our education system. According to a recent study from the Institute of Education, one in six primary-age children within the UK now ________ by the age of seven. In some schools, the practice is so extreme as _______ to a return of the grammar-school principle. Crown Woods school in south London has caused a furore for its decision ________ children in "schools within schools", according to ability, each with its own colour-coded uniform. _________ has already been reported between students located in different blocks.

Пропущенные слова:
B4. START
B5. PLACE
B6. ABOLISH
B7. TURN
B8. FIX
B.9 STREAM
B10. COME
B11. HOUSE
B12. FIGHT