home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / GENCSRC.ZIP / INTIN.C < prev    next >
C/C++ Source or Header  |  1987-11-21  |  366b  |  17 lines

  1.                                           /* Chapter 9 - Program 4 */
  2. #include "stdio.h"
  3.  
  4. main()
  5. {
  6. int valin;
  7.  
  8.    printf("Input a number from 0 to 32767, stop with 100.\n");
  9.  
  10.    do {
  11.       scanf("%d",&valin);   /* read a single integer value in */
  12.       printf("The value is %d\n",valin);
  13.    } while (valin != 100);
  14.  
  15.    printf("End of program\n");
  16. }
  17.