home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / mbug / mbug064.arc / WHILE.C < prev    next >
Text File  |  1979-12-31  |  256b  |  13 lines

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