Write a programExercise 1/4Basic10 XP

Multiples of a number

Task

The program reads two positive whole numbers k and h (each on its own line, k < h). On one line, separated by spaces, it prints all multiples of k that are smaller than h.

For k = 7 and h = 50 the program prints:

7 14 21 28 35 42 49

Examples

  • Input

    7
    50

    Expected output

    7 14 21 28 35 42 49

After you submit, 5 hidden tests will also check your solution: multiples of one, the limit is a multiple, a single multiple, up to a hundred, sevens below a hundred.

Python starts the first time you run code.

Ctrl+Enter runs the program. Tab indents. Press Esc, then Tab, to leave the editor.

Input (stdin)

Each line = one call to input().

Output

Hints

Try it yourself first. Each hint reveals a little more - and lowers the reward a little.

Signed out, hints are free - but no XP is awarded either.

Solution

The solution unlocks after the last hint.