home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / open / tur-c-tu.lzh / SOURCE.ZIP / WHILE.C < prev    next >
C/C++ Source or Header  |  1988-02-01  |  266b  |  14 lines

  1.                                          /* Chapter 3 - Program 1 */
  2. /* This is an example of a "while" loop */
  3.  
  4. main()
  5. {
  6. int count;
  7.  
  8.    count = 0;
  9.    while (count < 6) {
  10.       printf("The value of count is %d\n",count);
  11.       count = count + 1;
  12.    }
  13. }
  14.