1
0

repeat.c 306 B

12345678910111213
  1. /* repeat.c -- main() with arguments */
  2. #include <stdio.h>
  3. int main(int argc, char *argv[])
  4. {
  5. int count;
  6. printf("The command line has %d arguments:\n", argc - 1);
  7. for (count = 1; count < argc; count++)
  8. printf("%d: %s\n", count, argv[count]);
  9. printf("\n");
  10. return 0;
  11. }