home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gusmod11.zip / GEN.C < prev    next >
C/C++ Source or Header  |  1993-01-13  |  405b  |  25 lines

  1. /* Written by Yuri Lee */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.     int i;
  8.     unsigned l,k;
  9.  
  10.     l = 10;
  11.     for(i=100;i<1000;i++) {
  12.         if( l == 10 ) {
  13.             l = 0;
  14.             printf("\tDW\t");
  15.         }
  16.                 k = (unsigned)( 83245.25581 / i );
  17.         if( l == 9 ) {
  18.             printf("%4u\n",k);
  19.         } else {
  20.             printf("%4u, ",k);
  21.         }
  22.         l++;
  23.     }
  24. }
  25.