%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% notepaper.tex
% Mats Bengtsson, 18/5 2000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}

\usepackage{ifthen}
\usepackage[noheadfoot,hmargin=15mm,vmargin=20mm]{geometry}

\pagestyle{empty}

\newcounter{staffnumber}
\newlength{\interstaffline}

\newcommand{\drawline}{\hbox{\rule{\textwidth}{0.5pt}}
  \nointerlineskip\vskip\interstaffline\nointerlineskip}

\newcommand{\printstaff}{\vfill
  \vbox{\drawline\drawline\drawline\drawline\drawline}
  \vfill}

\begin{document}
\typeout{}\typeout{}
\typein[\staffsize]{Type in the staff size (20pt is a common value):}
\setlength{\interstaffline}{\staffsize}
\setlength{\interstaffline}{.25\interstaffline}
\typeout{}
\typein[\num]{Type in the number of staffs:}
\setcounter{staffnumber}{\num}

\mbox{} % To get a starting point for the \vfill
\whiledo{\value{staffnumber}>0}{%
  \printstaff \addtocounter{staffnumber}{-1}}

\end{document}