Input:
> printf 1\n\2\n3\n
1
2
3
Desired output:
0
1
1
Typing
printf 1\n\2\n3\n | dc -e '-p'
the output is:
dc: stack empty
dc: stack empty
Asked by ncomputers
(1572 rep)
Jan 28, 2016, 09:51 PM
Last activity: Feb 17, 2023, 05:15 PM
Last activity: Feb 17, 2023, 05:15 PM