home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c021 / 7.img / EXAMPLES.ZIP / INTRO6.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-04  |  399 b   |  18 lines

  1. /* INTRO6.C--Example from Chapter 4 of Getting Started */
  2.  
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.    int i = 101, j = 59, k = 0;
  8.    int m = 70,  n = 85, p = 5;
  9.    int q = 39, r = 110, s = 11;
  10.  
  11.    printf("\tWon\tLost\tTied\n\n");
  12.    printf("Eagles\t%3d\t%3d\t%3d\n", i, j, k);
  13.    printf("Lions\t%3d\t%3d\t%3d\n", m, n, p);
  14.    printf("Wombats\t%3d\t%3d\t%3d\n",  q, r, s);
  15.  
  16.    return 0;
  17. }
  18.