home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
98.img
/
LCNOW2.ZIP
/
EXAMPLES
/
INSTRUCT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-07
|
367b
|
22 lines
/*
* I N S T R U C T
*
* This program determines whether its user
* can follow simple instructions.
*/
main()
{
char ch;
printf("Type the letter T and press Enter: ");
scanf("%1s", &ch);
if (ch != 'T') {
printf("Sorry, you don't make the team!\n");
return (1);
}
printf("Excellent! You're very cooperative.\n");
return (0);
}