Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81333 / brainfsck / examples / input.bf
diff options
context:
space:
mode:
1 files changed, 13 insertions, 0 deletions
-rw-r--r--homework/81333/brainfsck/examples/input.bf13
diff --git a/homework/81333/brainfsck/examples/input.bf b/homework/81333/brainfsck/examples/input.bf
new file mode 100644
index 0000000..12597fc
--- /dev/null
+++ b/homework/81333/brainfsck/examples/input.bf
@@ -0,0 +1,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