Please mind the formatting of your posts, and the usage of 'backticks' - see the top of the page. This way your code will be much more readable. Also, there is a preview pane that shows exactly how the post will be visible to others.
For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/