home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / c / other / learn / for1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-07  |  195 b   |  11 lines

  1. /* FOR1.C: Demonstrate multiple expressions. */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.    int a, b;
  8.    for( a = 256, b = 1; b < 512; a /= 2, b *= 2 )
  9.       printf( "a = %d  b = %d\n", a, b );
  10. }
  11.