Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 0.84 KB | Hits: 26 | Expires: Never
Copy text to clipboard
  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 'e'
  11. +++++ ++ .              print 'l'
  12. .                       print 'l'
  13. +++ .                   print 'o'
  14. >++ .                   print ' '
  15. << +++++ +++++ +++++ .  print 'W'
  16. > .                     print 'o'
  17. +++ .                   print 'r'
  18. ----- - .               print 'l'
  19. ----- --- .             print 'd'
  20. > + .                   print '!'
  21. > .                     print '\n'