Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81333 / brainfsck / examples / input.bf
blob: 12597fc85a19ba2467e724b45358cd2d3e8f436f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
> +
[ - >,>+<
  ----- -----    ; minus 10
  [              ; if enters means it is not a \n
    +++++ +++++  ; restore prev value
    < 
  ] >>           ; moving forward
]
                 ; numbers are 0 0 49 0 50 0 51
                 ; for input 123
<<<<[<<]         ; moving to the beginning
>>               ; reaching first char
[.>>]            ; just printing till end