One way is to change the text form to code form.
Use math mode:
Proper way I think would be to escape those characters with a backslash:
Or to wrap it all in the online code formatting:
You need to mark Markdown examples as code to prevent the forum from rendering them (I edited your post to do it).