home *** CD-ROM | disk | FTP | other *** search
/ World of A1200 / World_Of_A1200.iso / datafiles / text / c_tutor / intin.c < prev    next >
C/C++ Source or Header  |  1995-02-27  |  279b  |  15 lines

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