home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _DISK_ / ch2 / epp14.c < prev    next >
C/C++ Source or Header  |  2005-06-16  |  508b  |  23 lines

  1. /*                 epp14.c                   */
  2.  
  3. /* Include Files (/
  4. #include <stdio.h>
  5.  
  6. int main( void )
  7. {
  8.      int i;
  9.  
  10.           i = 1;
  11.           printf ("counting\n;
  12.           while (i < 100) {
  13.                int j = 1;
  14.                printf ("%4d", i);
  15.                if !(i++ % 16)  {
  16.                     printf ("\n");
  17.                     j++
  18.                else printf (" ");
  19.                }
  20.                printf("\nThe number of lines printed was %d.\n", j);
  21.      return 0;
  22. }
  23.