-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello
24 lines (23 loc) · 975 Bytes
/
hello
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# this code is taken from the Wikipedia page on Brainfuck
# License: Creative Commons Attribution-ShareAlike 3.0
+++++ +++++ # initialize counter (cell #0) to 10
[ # use loop to set the next four cells to 70/100/30/10
> +++++ ++ # add 7 to cell #1
> +++++ +++++ # add 10 to cell #2
> +++ # add 3 to cell #3
> + # add 1 to cell #4
<<<< - # decrement counter (cell #0)
]
> ++ . # print 'H'
> + . # print 'e'
+++++ ++ . # print 'l'
. # print 'l'
+++ . # print 'o'
> ++ . # print ' '
<< +++++ +++++ +++++ . # print 'W'
> . # print 'o'
+++ . # print 'r'
----- - . # print 'l'
----- --- . # print 'd'
> + . # print '!'
> . # print '\n'