home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
258_01
/
dowhile.c
< prev
next >
Wrap
Text File
|
1988-03-30
|
256b
|
14 lines
/* Chapter 3 - Program 2 */
/* This is an example of a do-while loop */
main()
{
int i;
i = 0;
do {
printf("The value of i is now %d\n",i);
i = i + 1;
} while (i < 5);
}