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:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-10-07
|
195 b
|
11 lines
/* FOR1.C: Demonstrate multiple expressions. */
#include <stdio.h>
main()
{
int a, b;
for( a = 256, b = 1; b < 512; a /= 2, b *= 2 )
printf( "a = %d b = %d\n", a, b );
}