我想要用bf读取任意位数的数字。如果我手动设置正确的数字位数,我知道该如何读入,就像这样:
,>,>, 2 Read in 3 digits
<< 0
--------
--------
--------
--------
--------
-------- 45 decrements
> 1
--------
--------
--------
--------
--------
--------
> 2
--------
--------
--------
--------
--------
--------
[>+<-]< 1 Copy digit 3 to cell 3
[>>++++++++++<<-]< Copy 10 * digit 2 to cell 3
Copy 100 * digit 1 to cell 3
[>>>>++++++++++ 4
[<++++++++++>-] 4
<<<<-]>>> 3
>++++++++++..< Add 2 line breaks
., Print and Pause
但我宁愿在单元格0
中设置一个数字,然后自动将该数字乘以每个数字的正确次数。我最好该做什么?