home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / ctutor2.zip / INTIN.C < prev    next >
Text File  |  1989-11-10  |  528b  |  29 lines

  1.                                           /* Chapter 9 - Program 4 */
  2. #include "stdio.h"
  3.  
  4. void 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.  
  18.  
  19.  
  20. /* Result of execution
  21.  
  22. Input a number from 0 to 32767, stop with 100.
  23.  
  24. (The output depends on the numbers you type in.)
  25.  
  26. End of program
  27.  
  28. */
  29.