%!PS
% position constants and procs
/x 72 def
/yPos 700 def
/y {yPos lnHeight sub dup /yPos exch def} bind def
% font constants
/fontName /Courier def
/ptSize 12 def
/lnHeight ptSize 1.2 mul def
% set the font
fontName ptSize selectfont
% for loop to paint numbers
1 1 10 { 5 string cvs x y moveto show} for
% commit page image to currentpage
showpage
#include <stdio.h>
#define MIN_RANGE 1
#define MAX_RANGE 10
int main (void)
{
int i;
for (i = MIN_RANGE; i <= MAX_RANGE; i++)
printf("%i\n", i);
return 0;
}
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.