How do I put code in a posting?

I have a question on a programming problem but do not know how to put the code into the post.

Use the # button on the post page.

A little more detail:

Use your mouse to highlight the part of your post that is code, then click on the '#' button (it's the third from the right on the bottom row). You use most of the buttons in the same way.