home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / languages / dice_466 / netdcc / examples / count.c < prev    next >
C/C++ Source or Header  |  1990-05-20  |  217b  |  22 lines

  1.  
  2. /*
  3.  *  COUNT.C
  4.  */
  5.  
  6. #include <stdio.h>
  7.  
  8. main(ac, av)
  9. char *av[];
  10. {
  11.     long i;
  12.  
  13.     if (ac == 1) {
  14.     puts("count <startvalue>");
  15.     exit(1);
  16.     }
  17.     for (i = atoi(av[1]); i; --i)
  18.     printf("%d\n", i);
  19.     return(0);
  20. }
  21.  
  22.