home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / CTUTOR2.ZIP / SINGLEIO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-03-29  |  384 b   |  16 lines

  1. #include "stdio.h"
  2.  
  3. main()
  4. {
  5. char c;
  6.  
  7.    printf("Enter any characters, terminate program with X\n");
  8.  
  9.    do {
  10.       c = getch();                     /* get a character */
  11.       putchar(c);                  /* display the hit key */
  12.    } while (c != 'X');
  13.  
  14.    printf("\nEnd of program.\n");
  15. }
  16.