Write a programBasic10 XPExercise 6/9

Counting down to 5

Task

The program reads a whole number greater than 5 and prints the numbers from it counting down to 5 inclusive. You may separate the numbers with spaces or print each on its own line.

If the number is not greater than 5, it prints cislo musi byt vacsie ako 5 (the number must be greater than 5).

Examples

  • Input

    9

    Expected output

    9 8 7 6 5

Rules

  • Use a while loop in this lesson.

After you submit, 4 hidden tests will also check your solution: the number 6, the number 5, the number 20, a negative number.

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.