home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / c / c_tutor / c_1 / forloop < prev    next >
Encoding:
Text File  |  1992-11-14  |  162 b   |  10 lines

  1. /* This is an example of a for loop */
  2.  
  3. main()
  4. {
  5. int index;
  6.  
  7.    for(index = 0;index < 6;index = index + 1)
  8.      printf("The value of the index is %d\n",index);
  9. }
  10.