我一直在处理这个编程挑战: http: //www.codeabbey.com/index/task_view/summing-up
基本上说:
Input data has two values A and B in the single line.
Output should have the sum A+B printed into it.
Additionally after the stop the program should have values A, B, A+B in the cells 0, 1 and 2 respectively.
因此,例如输入将如下所示:
9 26
现在,我认为我误解了问题或解决方案,因为我认为解决方案应该是 9、269 26 35
和 35 都在它们自己的单元格中。
我的解决方案返回9 26 35
,我相信正确的单元格(分别为 0,1 和 2),但我得到的答案是错误的。谁能看看问题和我的代码并告诉我哪里出错了?
代码:
;:>;:><[-<+>]<: