Euro coins and notes
Pure Bash, 48
s={1,2,5}
eval echo 0,0$s 0,${s}0 ${s}{,0,00},00
Try it online.
Japt, 23 22 bytes
-1 byte thanks to @Shaggy
5Æ#}ì ®eX-2 x2 d".,"
c
Returns an array of strings.
Try it online! with the -R
flag to output array items on separate lines.
Python 2, 72 bytes
print[('%.2f'%(10**(x/3-2)*(5>>~x%3))).replace(*'.,')for x in range(15)]
Try it online!
The expression 5>>~x%3
maps the non-negative integers to 1
, 2
, 5
, 1
, 2
, 5
…
It works because 5
, 2
, 1
are the successive right-bitshifts of 5
(0b101
→ 0b10
→ 0b1
); we cycle through them backwards.