●コメント版(#以降の文字と、空白・改行はコメントです。) # {3} = input two-digit number >> ,.<++++++[->--------<]> [->++++++++++<] ,.<++++++[->--------<]> [->+<] << # {2} = input two-digit number > ,.<++++++[->--------<]> [->++++++++++<] ,.<++++++[->--------<]> [->+<] < # if ( {2} not zero ) then {3} = !{2} ; pointer moves to {3}. >> [>[-]<[->+<]] > # subtract 4 from {3} while ( {3} != 0 ), and if remainder exists then {5} is not 0. >++++< # {4} = 4 [> # while ({3}) { [->+>+>+<<<] # {5:6:7} = !{4} >> >[-<<<+>>>]< # {4} = !{7} [ # while ({6}) { <<< [->>>>+<<<<] # {7} = !{3} >>>>[ # if ({7} not zero) { -[-<<<<+>>>>]<<->> # {3} = !{7} minus 1 ; decr({5}) ]< # } - # decr({6}) ] # } << <] # } # show result <+++++++[->+++++++<]> # {3} = 49 >>[[-]<<->>]<< # if ({5} not zero) then decr({3}) . # putchar({3}) ●コメントなし版 >>,.<++++++[->--------<]>[->++++++++++<],.<++++++[->--------<]>[->+<]<<>,.<++++++[->--------<]>[->++++++++++<],.<++++++[->--------<]>[->+<]<>>[>[-]<[->+<]]>>++++<[>[->+>+>+<<<]>>>[-<<<+>>>]<[<<<[->>>>+<<<<]>>>>[-[-<<<<+>>>>]<<->>]<-]<<<]<+++++++[->+++++++<]>>>[[-]<<->>]<<.