home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Teach Yourself C in 21 Days (6th Edition)
/
STYC216E.ISO
/
mac
/
Examples
/
Day06
/
forstate.c
< prev
next >
Wrap
C/C++ Source or Header
|
2002-04-14
|
243b
|
17 lines
/* Demonstrates a simple for statement */
#include <stdio.h>
int count;
int main( void )
{
/* Print the numbers 1 through 20 */
for (count = 1; count <= 20; count++)
printf("%d\n", count);
return 0;
}