fork download
  1. +++++ +++++ initialize counter (cell #0) to 10
  2. [ use loop to set the next four cells to 70/100/30/10
  3. > +++++ ++ add 7 to cell #1
  4. > +++++ +++++ add 10 to cell #2
  5. > +++ add 3 to cell #3
  6. > + add 1 to cell #4
  7. <<<< - decrement counter (cell #0)
  8. ]
  9. > ++ . print 'H'
  10. . print 'H'
  11. > + . print 'e'
  12. +++++ ++ . print 'l'
  13. . print 'l'
  14. +++ . print 'o'
  15. > ++ . print ' '
  16. << +++++ +++++ +++++ . print 'W'
  17. > . print 'o'
  18. +++ . print 'r'
  19. ----- - . print 'l'
  20. ----- --- . print 'd'
  21. > + . print '!'
  22. > . print '\n'
Success #stdin #stdout 0.01s 1704KB
stdin
1
2
10
42
11
stdout
HHello World!