How to print a page in landscape orientation (LaTeX)

capture erase sample.tex

texdoc init sample.tex

tex \documentclass[10pt]{report}

tex \usepackage{pdflscape}

tex \begin{document}

tex I am portrait (high).

tex \begin{landscape}

tex I am landscape (wide). \\

tex Table 1. Sample example. \\

tex \begin{tabular}{l cc } \hline

tex a & b & c \\

tex \hline

tex \end{tabular}

tex \end{landscape}

tex \end{document}

!pdflatex sample.tex