home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / qc / qc25 / forloop.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-15  |  178 b   |  11 lines

  1. /* FORLOOP.C: Demonstrate for loop. */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.    int test;
  8.    for( test = 10; test > 0; test = test - 2 )
  9.       printf( "test = %d\n", test );
  10. }
  11.