Given a non-negative integer
0, and output the value of
A non-negative integer.
- If you would like to accept the string as input, the string would match the following regex:
/^(0|[1-9][0-9]*)$/, i.e. it must not have any leading zeroes, except when it is
- If you accept a real integer as input, you may assume that the integer is within the handling capability of the language.
A positive integer, specified above. Leading zeroes are not allowed. Your output should match the regex
input output 0 1 1 1 2 2 3 3 4 4 5 5 6 6 7 7
This is code-golf, so shortest answer in bytes wins.
Standard loopholes apply.