home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / languages / progs / ctutor / Examples / while < prev    next >
Encoding:
Text File  |  1990-10-01  |  185 b   |  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.