home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 98.img / LCNOW2.ZIP / EXAMPLES / INSTRUCT.C < prev    next >
C/C++ Source or Header  |  1988-07-07  |  367b  |  22 lines

  1. /*
  2.  * I N S T R U C T
  3.  *
  4.  * This program determines whether its user
  5.  * can follow simple instructions.
  6.  */
  7.  
  8. main()
  9. {
  10.     char ch;
  11.  
  12.     printf("Type the letter T and press Enter: ");
  13.     scanf("%1s", &ch);
  14.     if (ch != 'T') {
  15.         printf("Sorry, you don't make the team!\n");
  16.         return (1);
  17.     }
  18.     printf("Excellent!  You're very cooperative.\n");
  19.  
  20.     return (0);
  21. }
  22.