diff options
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | brainfuck.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -30,3 +30,4 @@ Extensions: Example: echo '+++[.-]' | ./brainfuck # count down from 3 to 0 echo ',+++.;5' | ./brainfuck # shows 8 + echo ',>,<[->+<]>.;4 5' | ./brainfuck # shows 4+5=9 diff --git a/brainfuck.c b/brainfuck.c index 9472d56..de5f703 100644 --- a/brainfuck.c +++ b/brainfuck.c @@ -230,6 +230,7 @@ void usage(char * self) printf("Example:\n"); printf(" echo '+++[.-]' | %s # count down from 3 to 0\n", self); printf(" echo ',+++.;5' | %s # shows 8\n", self); + printf(" echo ',>,<[->+<]>.;4 5' | %s # shows 4+5=9\n", self); exit(EXIT_SUCCESS); } |