1 of 3

Bash, 14

printf %$#d $@

Ideone.