I downloaded and installed MikTeX on my machine (Windows 7), then when I run the command:
the outputs were:
So my question is, what option could I use to produce
ex.pdf? Any suggestion?
It is much easier to do these using a LaTeX editor. You may also want to consider using automated processes provided by say