add example for std.stdio.stdin

Also removes some unnecessary trailing whitespace.
I put the { on the same line as main() because vertical space is a bit important now that people view web pages on small screens.