# How to write text within \begin{verbatim} and \end{verbatim} in same line?

I am stuck on the following problem and don't know how to solve it. Here is my problem :

\documentclass{article}
\begin{document}

\begin{verbatim}'\hfill\end{verbatim} MKS' which puts the word 'MKS' at the far right of the page where as  \begin{verbatim}'\noindent \end{verbatim}MKS' which
puts  'MKS ' at the far left  of  the page in the same line.

\end{document}

Produces :

But I,d like to produce :

The text within \begin{verbatim} and \end{verbatim} makes a new line and takes a whole line for this text only within in it. This looks ugly. I want to get it with the other text. How can I do this?

\verb|'\hfill| MKS' which puts the word MKS' at the far right of the page where as