,>,< Take input in cells 0 and 1 and move back to cell 0
[> Start loop on cell 0 and move to cell 1
[>>+>+<<<-] Clone cell 1 to cells 3 and 4
>>> Move to cell 4
[<<<+>>>-] Move cell 4 to cell 1
< Move to cell 3
[<+>-] Add cell 3 to cell 2
<<<-] Move back to cell 0 increment and loop
>>. Move to cell 2 and display

;:# ,>,<[>[>>+>+<<<-]>>>[<<<+>>>-]<[<+>-]<<<-]>>.
Minimised form in comment