home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / l / l217 / 2.ddi / EXAMPLES / CH12EX06.PRO < prev    next >
Encoding:
Text File  |  1990-03-26  |  630 b   |  17 lines

  1. /*
  2.    Copyright (c) 1986, 90 by Prolog Development Center
  3. */
  4.    
  5. goal
  6.    person(N, A, I),
  7.    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  8.     *                                    *
  9.     *   Name    is left-justified, at least 15 characters wide    *
  10.     *   Age    is right-justified, 2 characters wide             *
  11.     *   Income    is right-justified, 9 characters wide, with 2     *
  12.     *          decimal places, printed in fixed-decimal          *
  13.     *          notation                      *
  14.     *                                  *
  15.     * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  16.     
  17.     writef("Name= %-15, Age= %2, Income= $%9.2f \n",N,A,I).