Skip to content
Onsite

Print Numbers in Steps of 10

EasyP3Coding

Return the multiples of 10 from 0 up to n, in increasing order: 0, 10, 20, ..., stopping at the largest multiple that is not above n. (The original exercise was vague about the start and the end; this version starts at 0 and includes n when n itself is a multiple of 10.)

Example 1

Input
n = 30
Output
[0,10,20,30]

Example 2

Input
n = 0
Output
[0]

Example 3

Input
n = 9
Output
[0]

Constraints

  • 0 <= n <= 10^5

Hints

Run checks the 3 visible tests, Submit all 8.